Package org.apache.xmlrpc.server

Examples of org.apache.xmlrpc.server.PropertyHandlerMapping


  /** Creates a new instance of {@link PropertyHandlerMapping} by
   * loading the property file from the given URL. Called from
   * {@link #newXmlRpcHandlerMapping()}.
   */
  protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.setTypeConverterFactory(server.getTypeConverterFactory());
        mapping.load(Thread.currentThread().getContextClassLoader(), url);
        return mapping;
  }
View Full Code Here


        config.setEnabledForExtensions(true);
        return config;
    }

    protected XmlRpcHandlerMapping getHandlerMapping(String pResource) throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.load(getClass().getClassLoader(), getClass().getResource(pResource));
        mapping.setTypeConverterFactory(getTypeConverterFactory());
        return mapping;
    }
View Full Code Here

      {
        webServer.getXmlRpcServer().setWorkerFactory(new XmlRpcWorkerFactoryDestecs(webServer.getXmlRpcServer()));
      }
      XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();

      PropertyHandlerMapping phm = new AnnotedPropertyHandlerMapping(); // new PropertyHandlerMapping();

      phm.addHandler(ICoSimProtocol.class.getName(), CoSimImpl.class);

      xmlRpcServer.setHandlerMapping(phm);

      XmlRpcServerConfigImpl serverConfig = (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();
      serverConfig.setEnabledForExtensions(true);
View Full Code Here

  /** Creates a new instance of {@link PropertyHandlerMapping} by
   * loading the property file from the given URL. Called from
   * {@link #newXmlRpcHandlerMapping()}.
   */
  protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.setAuthenticationHandler(authenticationHandler);
        if (requestProcessorFactoryFactory != null) {
            mapping.setRequestProcessorFactoryFactory(requestProcessorFactoryFactory);
        }
        if (typeConverterFactory != null) {
            mapping.setTypeConverterFactory(typeConverterFactory);
        } else {
            mapping.setTypeConverterFactory(server.getTypeConverterFactory());
        }
        mapping.setVoidMethodEnabled(server.getConfig().isEnabledForExtensions());
        mapping.load(Thread.currentThread().getContextClassLoader(), url);
        return mapping;
  }
View Full Code Here

    private XmlRpcServlet servlet;
    private MyServletWebServer server;
    private MyWebServer webServer;

    private XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.addHandler("Adder", Adder.class);
        return mapping;
    }
View Full Code Here

* Test class for the introspection stuff.
*/
public class MetadataTest extends XmlRpcTestCase {
    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException,
            XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.addHandler("Adder", AuthenticationTest.AdderImpl.class);
        XmlRpcSystemImpl.addSystemHandler(mapping);
        return mapping;
    }
View Full Code Here

  /** Creates a new instance of {@link PropertyHandlerMapping} by
   * loading the property file from the given URL. Called from
   * {@link #newXmlRpcHandlerMapping()}.
   */
  protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.setAuthenticationHandler(authenticationHandler);
        if (requestProcessorFactoryFactory != null) {
            mapping.setRequestProcessorFactoryFactory(requestProcessorFactoryFactory);
        }
        if (typeConverterFactory != null) {
            mapping.setTypeConverterFactory(typeConverterFactory);
        } else {
            mapping.setTypeConverterFactory(server.getTypeConverterFactory());
        }
        mapping.setVoidMethodEnabled(server.getConfig().isEnabledForExtensions());
        mapping.load(Thread.currentThread().getContextClassLoader(), url);
        return mapping;
  }
View Full Code Here

        config.setEnabledForExceptions(true);
        return config;
    }

    protected XmlRpcHandlerMapping getHandlerMapping(String pResource) throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.setVoidMethodEnabled(true);
        mapping.load(getClass().getClassLoader(), getClass().getResource(pResource));
        mapping.setTypeConverterFactory(getTypeConverterFactory());
        return mapping;
    }
View Full Code Here

    private XmlRpcServlet servlet;
    private MyServletWebServer server;
    private MyWebServer webServer;

    private XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.addHandler("Adder", Adder.class);
        return mapping;
    }
View Full Code Here

            return cal.getTime();
        }
    }
   
    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
        PropertyHandlerMapping mapping = new PropertyHandlerMapping();
        mapping.addHandler("DateConverter", DateConverter.class);
        return mapping;
    }
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.server.PropertyHandlerMapping

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.