public class XmlRpcServlet
extends javax.servlet.http.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(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Creates a new instance of
RequestData
for the request. |
AbstractReflectiveHandlerMapping.AuthenticationHandler |
getAuthenticationHandler()
Returns the servlets
AbstractReflectiveHandlerMapping.AuthenticationHandler. |
RequestProcessorFactoryFactory |
getRequestProcessorFactoryFactory()
Returns the servlets
RequestProcessorFactoryFactory. |
TypeConverterFactory |
getTypeConverterFactory()
Returns the servlets
TypeConverterFactory. |
XmlRpcServletServer |
getXmlRpcServletServer()
Returns the servlets instance of
XmlRpcServletServer. |
void |
init(javax.servlet.ServletConfig pConfig) |
void |
log(String pMessage) |
void |
log(String pMessage,
Throwable pThrowable) |
protected PropertyHandlerMapping |
newPropertyHandlerMapping(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(javax.servlet.ServletConfig pConfig)
Creates a new instance of
XmlRpcServer,
which is being used to process the requests. |
void |
setAuthenticationHandler(AbstractReflectiveHandlerMapping.AuthenticationHandler pHandler)
Sets the servlets
AbstractReflectiveHandlerMapping.AuthenticationHandler. |
void |
setRequestProcessorFactoryFactory(RequestProcessorFactoryFactory pFactory)
Sets the servlets
RequestProcessorFactoryFactory. |
void |
setTypeConverterFactory(TypeConverterFactory pFactory)
Sets the servlets
TypeConverterFactory. |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic XmlRpcServletServer getXmlRpcServletServer()
XmlRpcServletServer.XmlRpcServletServer.public void init(javax.servlet.ServletConfig pConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void setAuthenticationHandler(AbstractReflectiveHandlerMapping.AuthenticationHandler pHandler)
AbstractReflectiveHandlerMapping.AuthenticationHandler.public AbstractReflectiveHandlerMapping.AuthenticationHandler getAuthenticationHandler()
AbstractReflectiveHandlerMapping.AuthenticationHandler.public void setRequestProcessorFactoryFactory(RequestProcessorFactoryFactory pFactory)
RequestProcessorFactoryFactory.public RequestProcessorFactoryFactory getRequestProcessorFactoryFactory()
RequestProcessorFactoryFactory.public void setTypeConverterFactory(TypeConverterFactory pFactory)
TypeConverterFactory.public TypeConverterFactory getTypeConverterFactory()
TypeConverterFactory.protected XmlRpcServletServer newXmlRpcServer(javax.servlet.ServletConfig pConfig) throws XmlRpcException
XmlRpcServer,
which is being used to process the requests. The default implementation
will simply invoke new XmlRpcServer.pConfig - The servlets configuration.XmlRpcExceptionprotected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException
org/apache/xmlrpc/webserver/XmlRpcServlet.propertiesXmlRpcExceptionprotected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException
PropertyHandlerMapping by
loading the property file from the given URL. Called from
newXmlRpcHandlerMapping().IOExceptionXmlRpcExceptionpublic void doPost(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
throws IOException,
javax.servlet.ServletException
RequestData
for the request.doPost in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionpublic void log(String pMessage, Throwable pThrowable)
log in class javax.servlet.GenericServletpublic void log(String pMessage)
log in class javax.servlet.GenericServletCopyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.