|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection)
Returns, whether the /** Processes a "connection". |
protected java.io.InputStream |
getInputStream(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection)
|
protected java.io.OutputStream |
getOutputStream(org.apache.xmlrpc.common.ServerStreamConnection pConnection,
org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
Called to prepare the output stream. |
protected java.io.OutputStream |
getOutputStream(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection,
int pSize)
Called to prepare the output stream, if content length is required. |
protected org.apache.xmlrpc.XmlRpcRequest |
getRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream)
|
protected org.apache.xmlrpc.serializer.XmlRpcWriter |
getXmlRpcWriter(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
|
org.apache.xmlrpc.serializer.XmlWriterFactory |
getXMLWriterFactory()
Returns the XML Writer factory. |
protected boolean |
isContentLengthRequired(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
Returns, whether the requests content length is required. |
void |
setXMLWriterFactory(org.apache.xmlrpc.serializer.XmlWriterFactory pFactory)
Sets the XML Writer factory. |
protected void |
writeError(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Throwable pError)
|
protected void |
writeResponse(org.apache.xmlrpc.common.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 org.apache.xmlrpc.XmlRpcRequest getRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.InputStream pStream)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
protected org.apache.xmlrpc.serializer.XmlRpcWriter getXmlRpcWriter(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcException
protected void writeResponse(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Object pResult)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionprotected java.lang.Throwable convertThrowable(java.lang.Throwable pError)
protected void writeError(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream,
java.lang.Throwable pError)
throws org.apache.xmlrpc.XmlRpcException
org.apache.xmlrpc.XmlRpcExceptionpublic void setXMLWriterFactory(org.apache.xmlrpc.serializer.XmlWriterFactory pFactory)
pFactory - The XML Writer factory.public org.apache.xmlrpc.serializer.XmlWriterFactory getXMLWriterFactory()
protected java.io.InputStream getInputStream(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection)
throws java.io.IOException
java.io.IOException
protected java.io.OutputStream getOutputStream(org.apache.xmlrpc.common.ServerStreamConnection pConnection,
org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
java.io.OutputStream pStream)
throws java.io.IOException
java.io.IOException
protected java.io.OutputStream getOutputStream(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection,
int pSize)
throws java.io.IOException
java.io.IOExceptionprotected boolean isContentLengthRequired(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig)
public void execute(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig pConfig,
org.apache.xmlrpc.common.ServerStreamConnection pConnection)
throws org.apache.xmlrpc.XmlRpcException
execute in interface org.apache.xmlrpc.common.XmlRpcStreamRequestProcessorpConfig - The request configuration.pConnection - The "connection" being processed.
org.apache.xmlrpc.XmlRpcException - Processing the request failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||