|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.xmlrpc.webserver.XmlRpcServlet
public class XmlRpcServlet
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 Summary | |
---|---|
XmlRpcServlet()
|
Method Summary | |
---|---|
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(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(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 . |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcServlet()
Method Detail |
---|
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
.
- Parameters:
pConfig
- The servlets configuration.
- Throws:
XmlRpcException
protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws XmlRpcException
org/apache/xmlrpc/webserver/XmlRpcServlet.properties
XmlRpcException
protected 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.IOException
XmlRpcException
public void doPost(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
RequestData
for the request.
doPost
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
public void log(java.lang.String pMessage, java.lang.Throwable pThrowable)
log
in class javax.servlet.GenericServlet
public void log(java.lang.String pMessage)
log
in class javax.servlet.GenericServlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |