|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.common.XmlRpcController
org.apache.xmlrpc.server.XmlRpcServer
org.apache.xmlrpc.server.XmlRpcStreamServer
org.apache.xmlrpc.webserver.XmlRpcServletServer
public class XmlRpcServletServer
An extension of XmlRpcServer
,
which is suitable for processing servlet requests.
Nested Class Summary | |
---|---|
protected static class |
XmlRpcServletServer.RequestData
This class is used as a "connection" while processing the request. |
Constructor Summary | |
---|---|
XmlRpcServletServer()
|
Method Summary | |
---|---|
protected void |
closeConnection(java.lang.Object pConnection)
Closes the connection, releasing all resources. |
void |
execute(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Processes the servlet request. |
protected XmlRpcServletServer.RequestData |
getConfig(javax.servlet.http.HttpServletRequest pRequest)
|
protected java.io.OutputStream |
getOutputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection,
int pSize)
Called to prepare the output stream, if content length is required. |
protected boolean |
isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required. |
protected XmlRpcServletServer.RequestData |
newConfig(javax.servlet.http.HttpServletRequest pRequest)
|
protected java.io.InputStream |
newInputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection)
Returns the connections input stream. |
protected java.io.OutputStream |
newOutputStream(XmlRpcStreamRequestConfig pConfig,
java.lang.Object pConnection)
Creates the connections output stream. |
protected XmlRpcServletServer.RequestData |
newRequestData(javax.servlet.http.HttpServletRequest pRequest)
|
Methods inherited from class org.apache.xmlrpc.server.XmlRpcStreamServer |
---|
execute, getInputStream, getOutputStream, getRequest, getXmlRpcWriter, getXMLWriterFactory, setXMLWriterFactory, writeError, writeResponse |
Methods inherited from class org.apache.xmlrpc.server.XmlRpcServer |
---|
execute, getConfig, getDefaultXmlRpcWorkerFactory, getHandlerMapping, setConfig, setHandlerMapping |
Methods inherited from class org.apache.xmlrpc.common.XmlRpcController |
---|
getMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcServletServer()
Method Detail |
---|
protected XmlRpcServletServer.RequestData newConfig(javax.servlet.http.HttpServletRequest pRequest)
protected XmlRpcServletServer.RequestData getConfig(javax.servlet.http.HttpServletRequest pRequest)
protected XmlRpcServletServer.RequestData newRequestData(javax.servlet.http.HttpServletRequest pRequest)
public void execute(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- The servlet request being read.pResponse
- The servlet response being created.
java.io.IOException
- Reading the request or writing the response failed.
javax.servlet.ServletException
- Processing the request failed.protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
isContentLengthRequired
in class XmlRpcStreamServer
protected java.io.InputStream newInputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection) throws java.io.IOException
XmlRpcStreamServer
newInputStream
in class XmlRpcStreamServer
java.io.IOException
protected java.io.OutputStream newOutputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection) throws java.io.IOException
XmlRpcStreamServer
newOutputStream
in class XmlRpcStreamServer
java.io.IOException
protected java.io.OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig, java.lang.Object pConnection, int pSize) throws java.io.IOException
XmlRpcStreamServer
getOutputStream
in class XmlRpcStreamServer
java.io.IOException
protected void closeConnection(java.lang.Object pConnection) throws java.io.IOException
XmlRpcStreamServer
closeConnection
in class XmlRpcStreamServer
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |