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 {
    return new PropertyHandlerMapping(getClass().getClassLoader(), url,
                server.getTypeConverterFactory(),
                false);
  }
View Full Code Here


        }
    }

    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException,
            XmlRpcException {
        return new PropertyHandlerMapping(getClass().getClassLoader(),
                getClass().getResource("JiraTest.properties"),
                getTypeConverterFactory(),
                true);
    }
View Full Code Here

            return pNum1 + pNum2;
        }
    }

    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
        return new PropertyHandlerMapping(getClass().getClassLoader(),
                                          getClass().getResource("DynamicProxyTest.properties"),
                                          getTypeConverterFactory(),
                                          true);
    }
View Full Code Here

            return calendarParam(cal).getTime();
        }
    }

    protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
    return new PropertyHandlerMapping(getClass().getClassLoader(),
                      getClass().getResource("BaseTest.properties"),
                                          getTypeConverterFactory(),
                                          true);
  }
View Full Code Here

    URL url = XmlRpcServlet.class.getResource("XmlRpcServlet.properties");
    if (url == null) {
      throw new XmlRpcException("Failed to locate resource XmlRpcServlet.properties");
    }
    try {
      return new PropertyHandlerMapping(getClass().getClassLoader(), url);
    } catch (IOException e) {
      throw new XmlRpcException("Failed to load resource " + url + ": " + e.getMessage(), e);
    }
  }
View Full Code Here

      return pCal.getTime().getTime();
    }
  }

  protected XmlRpcHandlerMapping getHandlerMapping() throws IOException, XmlRpcException {
    return new PropertyHandlerMapping(getClass().getClassLoader(),
                      getClass().getResource("BaseTest.properties"));
  }
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.setTypeConverterFactory(server.getTypeConverterFactory());
        mapping.load(Thread.currentThread().getContextClassLoader(), url);
        return mapping;
  }
View Full Code Here

    System.out.println("XMLRPCServer:");
    try
    {
      _server = new WebServer(PowerPakConfig.XMLRPC_PORT, InetAddress.getByName(PowerPakConfig.XMLRPC_HOST));
      XmlRpcServer xmlServer = _server.getXmlRpcServer();
      PropertyHandlerMapping phm = new PropertyHandlerMapping();
      xmlServer.setHandlerMapping(phm);
      int numServices = 0;
      try
      {
        L2Properties p = new L2Properties("config/powerpak/xmlrpc.service");
        for(Object s : p.keySet())
        {
          String service = p.getProperty(s.toString());
          Class<?> clazz = Class.forName(service);
          if(clazz != null)
          {
            numServices++;
            phm.addHandler(s.toString(), clazz);
          }

        }
      }
      catch(Exception e)
View Full Code Here

        this.embeddedWebServer = new WebServer(Server.port);
        this.embeddedXmlRpcServer = this.embeddedWebServer.getXmlRpcServer();
        this.running = false;
        this.controlPanel = controlPanel;
       
        PropertyHandlerMapping propertyHandlerMapping = new PropertyHandlerMapping();
       
        try {
            propertyHandlerMapping.load(Thread.currentThread().getContextClassLoader(), "handlers.properties");
        } catch (Exception e) {
            this.controlPanel.addLogMessage(e.getMessage());
        }
       
        this.embeddedXmlRpcServer.setHandlerMapping(propertyHandlerMapping);
View Full Code Here

      logger.info("Attempting to start XML-RPC server at " + server_spec.toString() + ":" + port);
      WebServer server = new WebServer(port, server_spec);
      XmlRpcServer rpc_server = server.getXmlRpcServer();

      PropertyHandlerMapping phm = new PropertyHandlerMapping();
      phm.addHandler("report", PentahoRenderer.class);
      rpc_server.setHandlerMapping(phm);

      server.start();
      logger.info("Started successfully");
      logger.info("Accepting requests");
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.