Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes
org.apache.xmlrpc.server.XmlRpcStreamServer Class Reference
Inheritance diagram for org.apache.xmlrpc.server.XmlRpcStreamServer:
Inheritance graph
[legend]

List of all members.

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()

Detailed Description

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.


Member Function Documentation

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.

Returns, whether the /** Processes a "connection". The "connection" is an opaque object, which is being handled by the subclasses.

Parameters:
pConfigThe request configuration.
pConnectionThe "connection" being processed.
Exceptions:
XmlRpcExceptionProcessing 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.

Parameters:
pConnectionThe 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.

Parameters:
pConfigThe configuration object.
pSizeThe 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.

Definition at line 84 of file XmlRpcStreamServer.java.

Returns the XML Writer factory.

Returns:
The XML Writer factory.

Definition at line 138 of file XmlRpcStreamServer.java.

Returns, whether the requests content length is required.

Parameters:
pConfigThe 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.

Sets the error logger.

Definition at line 270 of file XmlRpcStreamServer.java.

Sets the XML Writer factory.

Parameters:
pFactoryThe 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.


Member Data Documentation

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.

Definition at line 56 of file XmlRpcStreamServer.java.

Definition at line 55 of file XmlRpcStreamServer.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:50