|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
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(HttpServletRequest pRequest,
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(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. |
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 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(ServletConfig pConfig) throws ServletException
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(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(HttpServletRequest pRequest, HttpServletResponse pResponse) throws java.io.IOException, ServletException
RequestData
for the request.
java.io.IOException
ServletException
public void log(java.lang.String pMessage, java.lang.Throwable pThrowable)
public void log(java.lang.String pMessage)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |