org.apache.xmlrpc.webserver

Class XmlRpcServletServer

public class XmlRpcServletServer extends XmlRpcHttpServer

An extension of {@link org.apache.xmlrpc.server.XmlRpcServer}, which is suitable for processing servlet requests.
Nested Class Summary
protected static classXmlRpcServletServer.ServletStreamConnection
Method Summary
voidexecute(HttpServletRequest pRequest, HttpServletResponse pResponse)
Processes the servlet request.
protected XmlRpcHttpRequestConfigImplgetConfig(HttpServletRequest pRequest)
protected OutputStreamgetOutputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize)
protected booleanisContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required.
protected XmlRpcHttpRequestConfigImplnewConfig(HttpServletRequest pRequest)
protected XmlRpcServletServer.ServletStreamConnectionnewStreamConnection(HttpServletRequest pRequest, HttpServletResponse pResponse)
protected voidsetResponseHeader(ServerStreamConnection pConnection, String pHeader, String pValue)

Method Detail

execute

public void execute(HttpServletRequest pRequest, HttpServletResponse pResponse)
Processes the servlet request.

Parameters: pRequest The servlet request being read. pResponse The servlet response being created.

Throws: IOException Reading the request or writing the response failed. ServletException Processing the request failed.

getConfig

protected XmlRpcHttpRequestConfigImpl getConfig(HttpServletRequest pRequest)

getOutputStream

protected OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize)

isContentLengthRequired

protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required.

newConfig

protected XmlRpcHttpRequestConfigImpl newConfig(HttpServletRequest pRequest)

newStreamConnection

protected XmlRpcServletServer.ServletStreamConnection newStreamConnection(HttpServletRequest pRequest, HttpServletResponse pResponse)

setResponseHeader

protected void setResponseHeader(ServerStreamConnection pConnection, String pHeader, String pValue)
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.