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, service
public XmlRpcServletServer getXmlRpcServletServer()
XmlRpcServletServer
.XmlRpcServletServer
.public void init(javax.servlet.ServletConfig pConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public 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.XmlRpcException
protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException
org/apache/xmlrpc/webserver/XmlRpcServlet.properties
XmlRpcException
protected PropertyHandlerMapping newPropertyHandlerMapping(URL url) throws IOException, XmlRpcException
PropertyHandlerMapping
by
loading the property file from the given URL. Called from
newXmlRpcHandlerMapping()
.IOException
XmlRpcException
public 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.HttpServlet
IOException
javax.servlet.ServletException
public void log(String pMessage, Throwable pThrowable)
log
in class javax.servlet.GenericServlet
public void log(String pMessage)
log
in class javax.servlet.GenericServlet
Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.