Class XmlRpcEventHandler

  • All Implemented Interfaces:
    EventHandler, org.apache.xmlrpc.common.XmlRpcRequestProcessor, org.apache.xmlrpc.common.XmlRpcStreamRequestProcessor

    public class XmlRpcEventHandler
    extends org.apache.xmlrpc.server.XmlRpcHttpServer
    implements EventHandler
    XmlRpcEventHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig, org.apache.xmlrpc.common.ServerStreamConnection pConnection)  
      protected org.apache.xmlrpc.XmlRpcRequest getRequest​(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig, java.io.InputStream pStream)  
      protected org.apache.xmlrpc.common.XmlRpcHttpRequestConfig getXmlRpcConfig​(HttpServletRequest req)  
      void init​(ServletContext context)
      Initializes the handler.
      java.lang.String invoke​(ConfigXMLReader.Event event, ConfigXMLReader.RequestMap requestMap, HttpServletRequest request, HttpServletResponse response)
      Invoke the web event
      protected void setResponseHeader​(org.apache.xmlrpc.common.ServerStreamConnection con, java.lang.String header, java.lang.String value)  
      • Methods inherited from class org.apache.xmlrpc.server.XmlRpcHttpServer

        getOutputStream
      • Methods inherited from class org.apache.xmlrpc.server.XmlRpcStreamServer

        convertThrowable, getErrorLogger, getInputStream, getOutputStream, getXmlRpcWriter, getXMLWriterFactory, isContentLengthRequired, logError, setErrorLogger, setXMLWriterFactory, writeError, writeResponse
      • Methods inherited from class org.apache.xmlrpc.server.XmlRpcServer

        execute, getConfig, getDefaultXmlRpcWorkerFactory, getHandlerMapping, getTypeConverterFactory, setConfig, setHandlerMapping, setTypeConverterFactory
      • Methods inherited from class org.apache.xmlrpc.common.XmlRpcController

        getMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.xmlrpc.common.XmlRpcRequestProcessor

        execute, getTypeConverterFactory
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • XmlRpcEventHandler

        public XmlRpcEventHandler()
    • Method Detail

      • init

        public void init​(ServletContext context)
                  throws EventHandlerException
        Description copied from interface: EventHandler
        Initializes the handler. Since handlers use the singleton pattern this method should only be called the first time the handler is used.
        Specified by:
        init in interface EventHandler
        Parameters:
        context - ServletContext This may be needed by the handler in order to lookup properties or XML definition files for rendering pages or handler options.
        Throws:
        EventHandlerException
      • setResponseHeader

        protected void setResponseHeader​(org.apache.xmlrpc.common.ServerStreamConnection con,
                                         java.lang.String header,
                                         java.lang.String value)
        Specified by:
        setResponseHeader in class org.apache.xmlrpc.server.XmlRpcHttpServer
      • getXmlRpcConfig

        protected org.apache.xmlrpc.common.XmlRpcHttpRequestConfig getXmlRpcConfig​(HttpServletRequest req)
      • execute

        public void execute​(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
                            org.apache.xmlrpc.common.ServerStreamConnection pConnection)
                     throws org.apache.xmlrpc.XmlRpcException
        Specified by:
        execute in interface org.apache.xmlrpc.common.XmlRpcStreamRequestProcessor
        Overrides:
        execute in class org.apache.xmlrpc.server.XmlRpcStreamServer
        Throws:
        org.apache.xmlrpc.XmlRpcException
      • getRequest

        protected org.apache.xmlrpc.XmlRpcRequest getRequest​(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
                                                             java.io.InputStream pStream)
                                                      throws org.apache.xmlrpc.XmlRpcException
        Overrides:
        getRequest in class org.apache.xmlrpc.server.XmlRpcStreamServer
        Throws:
        org.apache.xmlrpc.XmlRpcException