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:
| Name | Description |
|---|---|
| enabledForExtensions | Sets the value
XmlRpcConfig#isEnabledForExtensions()
to true. |
| Constructor and Description |
|---|
XmlRpcServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPost(HttpServletRequest pRequest,
HttpServletResponse pResponse)
Creates a new instance of
RequestData
for the request. |
XmlRpcServletServer |
getXmlRpcServletServer()
Returns the servlets instance of
XmlRpcServletServer. |
void |
init(ServletConfig pConfig) |
void |
log(java.lang.String pMessage) |
void |
log(java.lang.String pMessage,
java.lang.Throwable pThrowable) |
protected PropertyHandlerMapping |
newPropertyHandlerMapping(java.net.URL url)
Creates a new instance of
PropertyHandlerMapping by
loading the property file from the given URL. |
protected XmlRpcHandlerMapping |
newXmlRpcHandlerMapping()
Creates a new handler mapping.
|
protected XmlRpcServletServer |
newXmlRpcServer(ServletConfig pConfig)
Creates a new instance of
XmlRpcServer,
which is being used to process the requests. |
public XmlRpcServletServer getXmlRpcServletServer()
XmlRpcServletServer.XmlRpcServletServer.public void init(ServletConfig pConfig)
throws ServletException
ServletExceptionprotected XmlRpcServletServer newXmlRpcServer(ServletConfig pConfig) throws XmlRpcException
XmlRpcServer,
which is being used to process the requests. The default implementation
will simply invoke new XmlRpcServer.XmlRpcExceptionprotected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException
org/apache/xmlrpc/webserver/XmlRpcServlet.propertiesXmlRpcExceptionprotected PropertyHandlerMapping newPropertyHandlerMapping(java.net.URL url) throws java.io.IOException, XmlRpcException
PropertyHandlerMapping by
loading the property file from the given URL. Called from
newXmlRpcHandlerMapping().java.io.IOExceptionXmlRpcExceptionpublic void doPost(HttpServletRequest pRequest,
HttpServletResponse pResponse)
throws java.io.IOException,
ServletException
RequestData
for the request.java.io.IOExceptionServletExceptionpublic void log(java.lang.String pMessage,
java.lang.Throwable pThrowable)
public void log(java.lang.String pMessage)