public abstract class XmlRpcStreamServer extends XmlRpcServer
XmlRpcServer with support for reading
requests from a stream and writing the response to another
stream.| Constructor and Description |
|---|
XmlRpcStreamServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection)
Returns, whether the
/** Processes a "connection".
|
protected java.io.InputStream |
getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection) |
protected java.io.OutputStream |
getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
Called to prepare the output stream.
|
protected java.io.OutputStream |
getOutputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection,
int pSize)
Called to prepare the output stream, if content length is
required.
|
protected XmlRpcRequest |
getRequest(XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream) |
protected XmlRpcWriter |
getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream) |
XmlWriterFactory |
getXMLWriterFactory()
Returns the XML Writer factory.
|
protected boolean |
isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required.
|
void |
setXMLWriterFactory(XmlWriterFactory pFactory)
Sets the XML Writer factory.
|
protected void |
writeError(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Throwable pError) |
protected void |
writeResponse(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Object pResult) |
execute, getConfig, getDefaultXmlRpcWorkerFactory, getHandlerMapping, getTypeConverterFactory, setConfig, setHandlerMapping, setTypeConverterFactoryprotected XmlRpcRequest getRequest(XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream)
throws XmlRpcException
XmlRpcExceptionprotected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
throws XmlRpcException
XmlRpcExceptionprotected void writeResponse(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Object pResult)
throws XmlRpcException
XmlRpcExceptionprotected void writeError(XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Throwable pError)
throws XmlRpcException
XmlRpcExceptionpublic void setXMLWriterFactory(XmlWriterFactory pFactory)
pFactory - The XML Writer factory.public XmlWriterFactory getXMLWriterFactory()
protected java.io.InputStream getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection)
throws java.io.IOException
java.io.IOExceptionprotected java.io.OutputStream getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
throws java.io.IOException
java.io.IOExceptionprotected java.io.OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection,
int pSize)
throws java.io.IOException
java.io.IOExceptionprotected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
public void execute(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection)
throws XmlRpcException
pConfig - The request configuration.pConnection - The "connection" being processed.XmlRpcException - Processing the request failed.