|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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. |
Field Summary | |
---|---|
private AbstractReflectiveHandlerMapping.AuthenticationHandler |
authenticationHandler
|
private static org.apache.commons.logging.Log |
log
|
private RequestProcessorFactoryFactory |
requestProcessorFactoryFactory
|
private static long |
serialVersionUID
|
private XmlRpcServletServer |
server
|
private org.apache.xmlrpc.common.TypeConverterFactory |
typeConverterFactory
|
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 . |
org.apache.xmlrpc.common.TypeConverterFactory |
getTypeConverterFactory()
Returns the servlets TypeConverterFactory . |
XmlRpcServletServer |
getXmlRpcServletServer()
Returns the servlets instance of XmlRpcServletServer . |
private void |
handleInitParameters(javax.servlet.ServletConfig pConfig)
|
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(org.apache.xmlrpc.common.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 |
Field Detail |
---|
private static final long serialVersionUID
private static final org.apache.commons.logging.Log log
private XmlRpcServletServer server
private AbstractReflectiveHandlerMapping.AuthenticationHandler authenticationHandler
private RequestProcessorFactoryFactory requestProcessorFactoryFactory
private org.apache.xmlrpc.common.TypeConverterFactory typeConverterFactory
Constructor Detail |
---|
public XmlRpcServlet()
Method Detail |
---|
public XmlRpcServletServer getXmlRpcServletServer()
XmlRpcServletServer
.
XmlRpcServletServer
.private void handleInitParameters(javax.servlet.ServletConfig pConfig) throws javax.servlet.ServletException
javax.servlet.ServletException
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(org.apache.xmlrpc.common.TypeConverterFactory pFactory)
TypeConverterFactory
.
public org.apache.xmlrpc.common.TypeConverterFactory getTypeConverterFactory()
TypeConverterFactory
.
protected XmlRpcServletServer newXmlRpcServer(javax.servlet.ServletConfig pConfig) throws org.apache.xmlrpc.XmlRpcException
XmlRpcServer
,
which is being used to process the requests. The default implementation
will simply invoke new XmlRpcServer
.
- Throws:
org.apache.xmlrpc.XmlRpcException
protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() throws org.apache.xmlrpc.XmlRpcException
org/apache/xmlrpc/webserver/XmlRpcServlet.properties
org.apache.xmlrpc.XmlRpcException
protected PropertyHandlerMapping newPropertyHandlerMapping(java.net.URL url) throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
PropertyHandlerMapping
by
loading the property file from the given URL. Called from
newXmlRpcHandlerMapping()
.
java.io.IOException
org.apache.xmlrpc.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 |