Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xmlrpc.common.XmlRpcController
org.apache.xmlrpc.server.XmlRpcServer
org.apache.xmlrpc.server.XmlRpcStreamServer
XmlRpcServer
with support for reading
requests from a stream and writing the response to another
stream.
Method Summary | |
protected Throwable |
|
void |
|
protected InputStream |
|
protected OutputStream |
|
protected OutputStream |
|
protected XmlRpcRequest |
|
XmlWriterFactory |
|
protected XmlRpcWriter |
|
protected boolean |
|
void |
|
protected void |
|
protected void |
|
Methods inherited from class org.apache.xmlrpc.server.XmlRpcServer | |
execute , getConfig , getDefaultXmlRpcWorkerFactory , getHandlerMapping , getTypeConverterFactory , setConfig , setHandlerMapping , setTypeConverterFactory |
Methods inherited from class org.apache.xmlrpc.common.XmlRpcController | |
getConfig , getDefaultXmlRpcWorkerFactory , getMaxThreads , getTypeFactory , getWorkerFactory , setMaxThreads , setTypeFactory , setWorkerFactory |
protected Throwable convertThrowable(Throwable pError)
This method allows to convert the error into another error. For example, this may be an error, which could be deserialized by the client.
public void execute(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws XmlRpcException
Returns, whether the /** Processes a "connection". The "connection" is an opaque object, which is being handled by the subclasses.
- Specified by:
- execute in interface XmlRpcStreamRequestProcessor
- Parameters:
pConfig
- The request configuration.pConnection
- The "connection" being processed.
- Throws:
XmlRpcException
- Processing the request failed.
protected InputStream getInputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws IOException
protected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException
Called to prepare the output stream. Typically used for enabling compression, or similar filters.
protected OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize) throws IOException
Called to prepare the output stream, if content length is required.
protected XmlRpcRequest getRequest(XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException
public XmlWriterFactory getXMLWriterFactory()
Returns the XML Writer factory.
- Returns:
- The XML Writer factory.
protected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws XmlRpcException
protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required.
public void setXMLWriterFactory(XmlWriterFactory pFactory)
Sets the XML Writer factory.
- Parameters:
pFactory
- The XML Writer factory.
protected void writeError(XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Throwable pError) throws XmlRpcException
protected void writeResponse(XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Object pResult) throws XmlRpcException