Public Member Functions | |
void | execute (XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws XmlRpcException |
XmlRpcErrorLogger | getErrorLogger () |
XmlWriterFactory | getXMLWriterFactory () |
void | setErrorLogger (XmlRpcErrorLogger pErrorLogger) |
void | setXMLWriterFactory (XmlWriterFactory pFactory) |
Protected Member Functions | |
Throwable | convertThrowable (Throwable pError) |
InputStream | getInputStream (XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws IOException |
OutputStream | getOutputStream (ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException |
OutputStream | getOutputStream (XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize) throws IOException |
XmlRpcRequest | getRequest (final XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException |
XmlRpcWriter | getXmlRpcWriter (XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws XmlRpcException |
boolean | isContentLengthRequired (XmlRpcStreamRequestConfig pConfig) |
void | logError (Throwable t) |
void | writeError (XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Throwable pError) throws XmlRpcException |
void | writeResponse (XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Object pResult) throws XmlRpcException |
Private Attributes | |
XmlRpcErrorLogger | errorLogger = theErrorLogger |
XmlWriterFactory | writerFactory = new DefaultXMLWriterFactory() |
Static Private Attributes | |
static final Log | log = LogFactory.getLog(XmlRpcStreamServer.class) |
static final XmlRpcErrorLogger | theErrorLogger = new XmlRpcErrorLogger() |
Extension of XmlRpcServer with support for reading requests from a stream and writing the response to another stream.
Definition at line 52 of file XmlRpcStreamServer.java.
Throwable org.apache.xmlrpc.server.XmlRpcStreamServer.convertThrowable | ( | Throwable | pError | ) | [inline, protected] |
This method allows to convert the error into another error. For example, this may be an error, which could be deserialized by the client.
Definition at line 104 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.execute | ( | XmlRpcStreamRequestConfig | pConfig, |
ServerStreamConnection | pConnection | ||
) | throws XmlRpcException [inline] |
Returns, whether the /** Processes a "connection". The "connection" is an opaque object, which is being handled by the subclasses.
pConfig | The request configuration. |
pConnection | The "connection" being processed. |
XmlRpcException | Processing the request failed. |
Implements org.apache.xmlrpc.common.XmlRpcStreamRequestProcessor.
Definition at line 189 of file XmlRpcStreamServer.java.
Returns the error logger.
Definition at line 263 of file XmlRpcStreamServer.java.
InputStream org.apache.xmlrpc.server.XmlRpcStreamServer.getInputStream | ( | XmlRpcStreamRequestConfig | pConfig, |
ServerStreamConnection | pConnection | ||
) | throws IOException [inline, protected] |
Definition at line 142 of file XmlRpcStreamServer.java.
OutputStream org.apache.xmlrpc.server.XmlRpcStreamServer.getOutputStream | ( | ServerStreamConnection | pConnection, |
XmlRpcStreamRequestConfig | pConfig, | ||
OutputStream | pStream | ||
) | throws IOException [inline, protected] |
Called to prepare the output stream. Typically used for enabling compression, or similar filters.
pConnection | The connection object. |
Reimplemented in org.apache.xmlrpc.server.XmlRpcHttpServer.
Definition at line 155 of file XmlRpcStreamServer.java.
OutputStream org.apache.xmlrpc.server.XmlRpcStreamServer.getOutputStream | ( | XmlRpcStreamRequestConfig | pConfig, |
ServerStreamConnection | pConnection, | ||
int | pSize | ||
) | throws IOException [inline, protected] |
Called to prepare the output stream, if content length is required.
pConfig | The configuration object. |
pSize | The requests size. |
Definition at line 169 of file XmlRpcStreamServer.java.
XmlRpcRequest org.apache.xmlrpc.server.XmlRpcStreamServer.getRequest | ( | final XmlRpcStreamRequestConfig | pConfig, |
InputStream | pStream | ||
) | throws XmlRpcException [inline, protected] |
Definition at line 59 of file XmlRpcStreamServer.java.
XmlRpcWriter org.apache.xmlrpc.server.XmlRpcStreamServer.getXmlRpcWriter | ( | XmlRpcStreamRequestConfig | pConfig, |
OutputStream | pStream | ||
) | throws XmlRpcException [inline, protected] |
Definition at line 84 of file XmlRpcStreamServer.java.
Returns the XML Writer factory.
Definition at line 138 of file XmlRpcStreamServer.java.
boolean org.apache.xmlrpc.server.XmlRpcStreamServer.isContentLengthRequired | ( | XmlRpcStreamRequestConfig | pConfig | ) | [inline, protected] |
Returns, whether the requests content length is required.
pConfig | The configuration object. |
Definition at line 178 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.logError | ( | Throwable | t | ) | [inline, protected] |
Definition at line 255 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.setErrorLogger | ( | XmlRpcErrorLogger | pErrorLogger | ) | [inline] |
Sets the error logger.
Definition at line 270 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.setXMLWriterFactory | ( | XmlWriterFactory | pFactory | ) | [inline] |
Sets the XML Writer factory.
pFactory | The XML Writer factory. |
Definition at line 131 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.writeError | ( | XmlRpcStreamRequestConfig | pConfig, |
OutputStream | pStream, | ||
Throwable | pError | ||
) | throws XmlRpcException [inline, protected] |
Reimplemented in org.apache.xmlrpc.webserver.ConnectionServer.
Definition at line 108 of file XmlRpcStreamServer.java.
void org.apache.xmlrpc.server.XmlRpcStreamServer.writeResponse | ( | XmlRpcStreamRequestConfig | pConfig, |
OutputStream | pStream, | ||
Object | pResult | ||
) | throws XmlRpcException [inline, protected] |
Reimplemented in org.apache.xmlrpc.webserver.ConnectionServer.
Definition at line 91 of file XmlRpcStreamServer.java.
XmlRpcErrorLogger org.apache.xmlrpc.server.XmlRpcStreamServer.errorLogger = theErrorLogger [private] |
Definition at line 57 of file XmlRpcStreamServer.java.
final Log org.apache.xmlrpc.server.XmlRpcStreamServer.log = LogFactory.getLog(XmlRpcStreamServer.class) [static, private] |
Definition at line 54 of file XmlRpcStreamServer.java.
final XmlRpcErrorLogger org.apache.xmlrpc.server.XmlRpcStreamServer.theErrorLogger = new XmlRpcErrorLogger() [static, private] |
Definition at line 56 of file XmlRpcStreamServer.java.
XmlWriterFactory org.apache.xmlrpc.server.XmlRpcStreamServer.writerFactory = new DefaultXMLWriterFactory() [private] |
Definition at line 55 of file XmlRpcStreamServer.java.