|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlrpc.common.XmlRpcController org.apache.xmlrpc.server.XmlRpcServer org.apache.xmlrpc.server.XmlRpcStreamServer
public abstract class XmlRpcStreamServer
Extension of XmlRpcServer
with support for reading
requests from a stream and writing the response to another
stream.
Constructor Summary | |
---|---|
XmlRpcStreamServer()
|
Method Summary | |
---|---|
protected java.lang.Throwable |
convertThrowable(java.lang.Throwable pError)
This method allows to convert the error into another error. |
void |
execute(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection)
Returns, whether the /** Processes a "connection". |
XmlRpcErrorLogger |
getErrorLogger()
Returns the error logger. |
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. |
protected void |
logError(java.lang.Throwable t)
|
void |
setErrorLogger(XmlRpcErrorLogger pErrorLogger)
Sets the error logger. |
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)
|
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 |
---|
getMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xmlrpc.common.XmlRpcRequestProcessor |
---|
execute, getTypeConverterFactory |
Constructor Detail |
---|
public XmlRpcStreamServer()
Method Detail |
---|
protected XmlRpcRequest getRequest(XmlRpcStreamRequestConfig pConfig, java.io.InputStream pStream) throws XmlRpcException
XmlRpcException
protected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig, java.io.OutputStream pStream) throws XmlRpcException
XmlRpcException
protected void writeResponse(XmlRpcStreamRequestConfig pConfig, java.io.OutputStream pStream, java.lang.Object pResult) throws XmlRpcException
XmlRpcException
protected java.lang.Throwable convertThrowable(java.lang.Throwable pError)
protected void writeError(XmlRpcStreamRequestConfig pConfig, java.io.OutputStream pStream, java.lang.Throwable pError) throws XmlRpcException
XmlRpcException
public 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.IOException
protected java.io.OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, java.io.OutputStream pStream) throws java.io.IOException
pConnection
- The connection object.
java.io.IOException
protected java.io.OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize) throws java.io.IOException
pConfig
- The configuration object.pSize
- The requests size.
java.io.IOException
protected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
pConfig
- The configuration object.public void execute(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws XmlRpcException
execute
in interface XmlRpcStreamRequestProcessor
pConfig
- The request configuration.pConnection
- The "connection" being processed.
XmlRpcException
- Processing the request failed.protected void logError(java.lang.Throwable t)
public XmlRpcErrorLogger getErrorLogger()
public void setErrorLogger(XmlRpcErrorLogger pErrorLogger)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |