Examples of XmlRpcRequestProcessor


Examples of org.apache.xmlrpc.XmlRpcRequestProcessor

                                    Object actionProcessor = req.getActionHandler() != null ?
                                        req.getActionHandler() : action;

                                    // do the actual action invocation
                                    if (req.isXmlRpc()) {
                                        XmlRpcRequestProcessor xreqproc = new XmlRpcRequestProcessor();
                                        XmlRpcServerRequest xreq = xreqproc.decodeRequest(req.getServletRequest()
                                                .getInputStream());
                                        Vector args = xreq.getParameters();
                                        args.add(0, xreq.getMethodName());
                                        result = scriptingEngine.invoke(currentElement,
                                                actionProcessor,
View Full Code Here

Examples of org.apache.xmlrpc.common.XmlRpcRequestProcessor

        if (isExtensionType(pRequest.getParameter(i))) {
          throw new XmlRpcExtensionException("Parameter " + i + " has invalid type, if isEnabledForExtensions() == false");
        }
      }
    }
    final XmlRpcRequestProcessor server = ((XmlRpcLocalClientConfig) config).getXmlRpcServer();
        Object result;
    try {
      result = server.execute(pRequest);
        } catch (XmlRpcException t) {
            throw t;
    } catch (Throwable t) {
        throw new XmlRpcClientException("Failed to invoke method " + pRequest.getMethodName()
                + ": " + t.getMessage(), t);
    }
    if (!config.isEnabledForExtensions()) {
      if (isExtensionType(result)) {
        throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");
      }
    }

    if (result == null) {
        return null;
        }
        final TypeConverterFactory typeConverterFactory = server.getTypeConverterFactory();
        final TypeConverter typeConverter = typeConverterFactory.getTypeConverter(result.getClass());
        return typeConverter.backConvert(result);
  }
View Full Code Here

Examples of org.apache.xmlrpc.common.XmlRpcRequestProcessor

/** Server part of a local stream transport.
*/
public class XmlRpcLocalStreamServer extends XmlRpcStreamServer {
  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcRequestProcessor server = ((XmlRpcRequestProcessorFactory) pRequest.getConfig()).getXmlRpcServer();
    return server.execute(pRequest);
  }
View Full Code Here

Examples of org.apache.xmlrpc.common.XmlRpcRequestProcessor

        if (isExtensionType(pRequest.getParameter(i))) {
          throw new XmlRpcExtensionException("Parameter " + i + " has invalid type, if isEnabledForExtensions() == false");
        }
      }
    }
    final XmlRpcRequestProcessor server = ((XmlRpcLocalClientConfig) config).getXmlRpcServer();
        Object result;
    try {
      result = server.execute(pRequest);
    } catch (Throwable t) {
      if (t instanceof XmlRpcClientException) {
        throw (XmlRpcClientException) t;
      } else {
        throw new XmlRpcClientException("Failed to invoke method " + pRequest.getMethodName()
                        + ": " + t.getMessage(), t);
      }
    }
    if (!config.isEnabledForExtensions()) {
      if (isExtensionType(result)) {
        throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");
      }
    }

    if (result == null) {
        return null;
        }
        final TypeConverterFactory typeConverterFactory = server.getTypeConverterFactory();
        final TypeConverter typeConverter = typeConverterFactory.getTypeConverter(result.getClass());
        return typeConverter.backConvert(result);
  }
View Full Code Here

Examples of org.apache.xmlrpc.common.XmlRpcRequestProcessor

        if (isExtensionType(pRequest.getParameter(i))) {
          throw new XmlRpcExtensionException("Parameter " + i + " has invalid type, if isEnabledForExtensions() == false");
        }
      }
    }
    final XmlRpcRequestProcessor server = ((XmlRpcLocalClientConfig) config).getXmlRpcServer();
        Object result;
    try {
      result = server.execute(pRequest);
        } catch (XmlRpcException t) {
            throw t;
    } catch (Throwable t) {
        throw new XmlRpcClientException("Failed to invoke method " + pRequest.getMethodName()
                + ": " + t.getMessage(), t);
    }
    if (!config.isEnabledForExtensions()) {
      if (isExtensionType(result)) {
        throw new XmlRpcExtensionException("Result has invalid type, if isEnabledForExtensions() == false");
      }
    }

    if (result == null) {
        return null;
        }
        final TypeConverterFactory typeConverterFactory = server.getTypeConverterFactory();
        final TypeConverter typeConverter = typeConverterFactory.getTypeConverter(result.getClass());
        return typeConverter.backConvert(result);
  }
View Full Code Here

Examples of org.apache.xmlrpc.common.XmlRpcRequestProcessor

/** Server part of a local stream transport.
*/
public class XmlRpcLocalStreamServer extends XmlRpcStreamServer {
  public Object execute(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcRequestProcessor server = ((XmlRpcRequestProcessorFactory) pRequest.getConfig()).getXmlRpcServer();
    return server.execute(pRequest);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.