org.apache.xmlrpc.webserver
Class XmlRpcServletServer
java.lang.Object
org.apache.xmlrpc.common.XmlRpcController
org.apache.xmlrpc.server.XmlRpcServer
org.apache.xmlrpc.server.XmlRpcStreamServer
org.apache.xmlrpc.server.XmlRpcHttpServer
org.apache.xmlrpc.webserver.XmlRpcServletServer
- All Implemented Interfaces:
- XmlRpcRequestProcessor, XmlRpcStreamRequestProcessor
public class XmlRpcServletServer
- extends XmlRpcHttpServer
An extension of XmlRpcServer,
which is suitable for processing servlet requests.
| Methods inherited from class org.apache.xmlrpc.server.XmlRpcStreamServer |
convertThrowable, getErrorLogger, getInputStream, getRequest, getXmlRpcWriter, getXMLWriterFactory, logError, setErrorLogger, setXMLWriterFactory, writeError, writeResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlRpcServletServer
public XmlRpcServletServer()
newConfig
protected XmlRpcHttpRequestConfigImpl newConfig(HttpServletRequest pRequest)
- Parameters:
pRequest - The request object.
getConfig
protected XmlRpcHttpRequestConfigImpl getConfig(HttpServletRequest pRequest)
newStreamConnection
protected XmlRpcServletServer.ServletStreamConnection newStreamConnection(HttpServletRequest pRequest,
HttpServletResponse pResponse)
execute
public void execute(HttpServletRequest pRequest,
HttpServletResponse pResponse)
throws ServletException,
java.io.IOException
- Processes the servlet request.
- Specified by:
execute in interface XmlRpcStreamRequestProcessor- Overrides:
execute in class XmlRpcStreamServer
- Parameters:
pRequest - The servlet request being read.pResponse - The servlet response being created.
- Throws:
java.io.IOException - Reading the request or writing the response failed.
ServletException - Processing the request failed.
isContentLengthRequired
protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
- Returns, whether the requests content length is required.
- Overrides:
isContentLengthRequired in class XmlRpcStreamServer
- Parameters:
pConfig - The configuration object.
getOutputStream
protected java.io.OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection,
int pSize)
throws java.io.IOException
- Description copied from class:
XmlRpcStreamServer
- Called to prepare the output stream, if content length is
required.
- Overrides:
getOutputStream in class XmlRpcStreamServer
- Parameters:
pConfig - The configuration object.pSize - The requests size.
- Throws:
java.io.IOException
setResponseHeader
protected void setResponseHeader(ServerStreamConnection pConnection,
java.lang.String pHeader,
java.lang.String pValue)
- Specified by:
setResponseHeader in class XmlRpcHttpServer
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.