org.apache.xmlrpc.webserver

Class XmlRpcServlet

public class XmlRpcServlet extends HttpServlet

A default servlet implementation The typical use would be to derive a subclass, which is overwriting at least the method newXmlRpcHandlerMapping.

The servlet accepts the following init parameters:

NameDescription
enabledForExtensionsSets the value isEnabledForExtensions to true.

Method Summary
voiddoPost(HttpServletRequest pRequest, HttpServletResponse pResponse)
Creates a new instance of RequestData for the request.
XmlRpcServletServergetXmlRpcServletServer()
Returns the servlets instance of XmlRpcServletServer.
voidinit(ServletConfig pConfig)
voidlog(String pMessage, Throwable pThrowable)
voidlog(String pMessage)
protected PropertyHandlerMappingnewPropertyHandlerMapping(URL url)
Creates a new instance of PropertyHandlerMapping by loading the property file from the given URL.
protected XmlRpcHandlerMappingnewXmlRpcHandlerMapping()
Creates a new handler mapping.
protected XmlRpcServletServernewXmlRpcServer(ServletConfig pConfig)
Creates a new instance of XmlRpcServer, which is being used to process the requests.

Method Detail

doPost

public void doPost(HttpServletRequest pRequest, HttpServletResponse pResponse)
Creates a new instance of RequestData for the request.

getXmlRpcServletServer

public XmlRpcServletServer getXmlRpcServletServer()
Returns the servlets instance of XmlRpcServletServer.

Returns: The configurable instance of XmlRpcServletServer.

init

public void init(ServletConfig pConfig)

log

public void log(String pMessage, Throwable pThrowable)

log

public void log(String pMessage)

newPropertyHandlerMapping

protected PropertyHandlerMapping newPropertyHandlerMapping(URL url)
Creates a new instance of PropertyHandlerMapping by loading the property file from the given URL. Called from newXmlRpcHandlerMapping.

newXmlRpcHandlerMapping

protected XmlRpcHandlerMapping newXmlRpcHandlerMapping()
Creates a new handler mapping. The default implementation loads a property file from the resource org/apache/xmlrpc/webserver/XmlRpcServlet.properties

newXmlRpcServer

protected XmlRpcServletServer newXmlRpcServer(ServletConfig pConfig)
Creates a new instance of XmlRpcServer, which is being used to process the requests. The default implementation will simply invoke new XmlRpcServer.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.