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 {@link #newXmlRpcHandlerMapping()}.

The servlet accepts the following init parameters:

NameDescription
enabledForExtensionsSets the value {@link XmlRpcConfig#isEnabledForExtensions()} to true.

Method Summary
voiddoPost(HttpServletRequest pRequest, HttpServletResponse pResponse)
Creates a new instance of {@link org.apache.xmlrpc.webserver.RequestData} for the request.
XmlRpcServletServergetXmlRpcServletServer()
Returns the servlets instance of {@link XmlRpcServletServer}.
voidinit(ServletConfig pConfig)
voidlog(String pMessage, Throwable pThrowable)
voidlog(String pMessage)
protected PropertyHandlerMappingnewPropertyHandlerMapping(URL url)
Creates a new instance of {@link 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 {@link XmlRpcServer}, which is being used to process the requests.

Method Detail

doPost

public void doPost(HttpServletRequest pRequest, HttpServletResponse pResponse)
Creates a new instance of {@link org.apache.xmlrpc.webserver.RequestData} for the request.

getXmlRpcServletServer

public XmlRpcServletServer getXmlRpcServletServer()
Returns the servlets instance of {@link XmlRpcServletServer}.

Returns: The configurable instance of {@link 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 {@link PropertyHandlerMapping} by loading the property file from the given URL. Called from {@link #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 {@link XmlRpcServer}, which is being used to process the requests. The default implementation will simply invoke new {@link XmlRpcServer}.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.