public abstract class XmlRpcStreamServer extends XmlRpcServer implements XmlRpcStreamRequestProcessor
XmlRpcServer with support for reading
requests from a stream and writing the response to another
stream.| Constructor and Description |
|---|
XmlRpcStreamServer() |
| Modifier and Type | Method and Description |
|---|---|
protected Throwable |
convertThrowable(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 InputStream |
getInputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection) |
protected OutputStream |
getOutputStream(ServerStreamConnection pConnection,
XmlRpcStreamRequestConfig pConfig,
OutputStream pStream)
Called to prepare the output stream.
|
protected OutputStream |
getOutputStream(XmlRpcStreamRequestConfig pConfig,
ServerStreamConnection pConnection,
int pSize)
Called to prepare the output stream, if content length is
required.
|
protected XmlRpcRequest |
getRequest(XmlRpcStreamRequestConfig pConfig,
InputStream pStream) |
protected XmlRpcWriter |
getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig,
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(Throwable t) |
void |
setErrorLogger(XmlRpcErrorLogger pErrorLogger)
Sets the error logger.
|
void |
setXMLWriterFactory(XmlWriterFactory pFactory)
Sets the XML Writer factory.
|
protected void |
writeError(XmlRpcStreamRequestConfig pConfig,
OutputStream pStream,
Throwable pError) |
protected void |
writeResponse(XmlRpcStreamRequestConfig pConfig,
OutputStream pStream,
Object pResult) |
execute, getConfig, getDefaultXmlRpcWorkerFactory, getHandlerMapping, getTypeConverterFactory, setConfig, setHandlerMapping, setTypeConverterFactorygetMaxThreads, getTypeFactory, getWorkerFactory, setMaxThreads, setTypeFactory, setWorkerFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getTypeConverterFactoryprotected XmlRpcRequest getRequest(XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException
XmlRpcExceptionprotected XmlRpcWriter getXmlRpcWriter(XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws XmlRpcException
XmlRpcExceptionprotected void writeResponse(XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Object pResult) throws XmlRpcException
XmlRpcExceptionprotected Throwable convertThrowable(Throwable pError)
protected void writeError(XmlRpcStreamRequestConfig pConfig, OutputStream pStream, Throwable pError) throws XmlRpcException
XmlRpcExceptionpublic void setXMLWriterFactory(XmlWriterFactory pFactory)
pFactory - The XML Writer factory.public XmlWriterFactory getXMLWriterFactory()
protected InputStream getInputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws IOException
IOExceptionprotected OutputStream getOutputStream(ServerStreamConnection pConnection, XmlRpcStreamRequestConfig pConfig, OutputStream pStream) throws IOException
pConnection - The connection object.IOExceptionprotected OutputStream getOutputStream(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection, int pSize) throws IOException
pConfig - The configuration object.pSize - The requests size.IOExceptionprotected boolean isContentLengthRequired(XmlRpcStreamRequestConfig pConfig)
pConfig - The configuration object.public void execute(XmlRpcStreamRequestConfig pConfig, ServerStreamConnection pConnection) throws XmlRpcException
execute in interface XmlRpcStreamRequestProcessorpConfig - The request configuration.pConnection - The "connection" being processed.XmlRpcException - Processing the request failed.protected void logError(Throwable t)
public XmlRpcErrorLogger getErrorLogger()
public void setErrorLogger(XmlRpcErrorLogger pErrorLogger)
Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.