Package org.apache.xmlrpc.common

Examples of org.apache.xmlrpc.common.XmlRpcExtensionException


        typeParser = factory.getParser(cfg, context, pURI, pLocalName);
        if (typeParser == null) {
          if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI&&  !cfg.isEnabledForExtensions()) {
            String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false.";
            throw new SAXParseException(msg, getDocumentLocator(),
                          new XmlRpcExtensionException(msg));
          } else {
            throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName),
                          getDocumentLocator());
          }
        }
View Full Code Here


        typeParser = factory.getParser(cfg, context, pURI, pLocalName);
        if (typeParser == null) {
          if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI&&  !cfg.isEnabledForExtensions()) {
            String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false.";
            throw new SAXParseException(msg, getDocumentLocator(),
                          new XmlRpcExtensionException(msg));
          } else {
            throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName),
                          getDocumentLocator());
          }
        }
View Full Code Here

  public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcConfig config = pRequest.getConfig();
    if (!config.isEnabledForExtensions()) {
      for (int i = 0;  i < pRequest.getParameterCount();  i++) {
        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;
View Full Code Here

  public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcConfig config = pRequest.getConfig();
    if (!config.isEnabledForExtensions()) {
      for (int i = 0;  i < pRequest.getParameterCount();  i++) {
        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;
View Full Code Here

        typeParser = factory.getParser(cfg, context, pURI, pLocalName);
        if (typeParser == null) {
          if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI&&  !cfg.isEnabledForExtensions()) {
            String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false.";
            throw new SAXParseException(msg, getDocumentLocator(),
                          new XmlRpcExtensionException(msg));
          } else {
            throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName),
                          getDocumentLocator());
          }
        }
View Full Code Here

  public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcConfig config = pRequest.getConfig();
    if (!config.isEnabledForExtensions()) {
      for (int i = 0;  i < pRequest.getParameterCount();  i++) {
        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;
View Full Code Here

        typeParser = factory.getParser(cfg, context, pURI, pLocalName);
        if (typeParser == null) {
          if (XmlRpcWriter.EXTENSIONS_URI.equals(pURI&&  !cfg.isEnabledForExtensions()) {
            String msg = "The tag " + new QName(pURI, pLocalName) + " is invalid, if isEnabledForExtensions() == false.";
            throw new SAXParseException(msg, getDocumentLocator(),
                          new XmlRpcExtensionException(msg));
          } else {
            throw new SAXParseException("Unknown type: " + new QName(pURI, pLocalName),
                          getDocumentLocator());
          }
        }
View Full Code Here

  public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException {
    XmlRpcConfig config = pRequest.getConfig();
    if (!config.isEnabledForExtensions()) {
      for (int i = 0;  i < pRequest.getParameterCount();  i++) {
        if (isExtensionType(pRequest.getParameter(i))) {
          throw new XmlRpcExtensionException("Parameter " + i + " has invalid type, if isEnabledForExtensions() == false");
        }
      }
    }
    Object result;
    try {
      result = ((XmlRpcLocalClientConfig) config).getXmlRpcServer().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");
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.common.XmlRpcExtensionException

Copyright © 2018 www.massapicom. 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.