public class XmlRpcWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSIONS_URI
The namespace URI for proprietary XML-RPC extensions.
|
Constructor and Description |
---|
XmlRpcWriter(XmlRpcStreamConfig pConfig,
org.xml.sax.ContentHandler pHandler,
TypeFactory pTypeFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
write(XmlRpcRequest pRequest)
Writes a clients request to the output stream.
|
void |
write(XmlRpcRequestConfig pConfig,
int pCode,
java.lang.String pMessage)
Writes a servers error message to the output stream.
|
void |
write(XmlRpcRequestConfig pConfig,
java.lang.Object pResult)
Writes a servers response to the output stream.
|
protected void |
writeValue(java.lang.Object pObject)
Writes the XML representation of a Java object.
|
public static final java.lang.String EXTENSIONS_URI
public XmlRpcWriter(XmlRpcStreamConfig pConfig, org.xml.sax.ContentHandler pHandler, TypeFactory pTypeFactory)
pConfig
- The clients configuration.pHandler
- The target SAX handler.pTypeFactory
- The type factory being used to create serializers.public void write(XmlRpcRequest pRequest) throws org.xml.sax.SAXException
pRequest
- The request being written.org.xml.sax.SAXException
- Writing the request failed.public void write(XmlRpcRequestConfig pConfig, java.lang.Object pResult) throws org.xml.sax.SAXException
pConfig
- The request configuration.pResult
- The result object.org.xml.sax.SAXException
- Writing the response failed.public void write(XmlRpcRequestConfig pConfig, int pCode, java.lang.String pMessage) throws org.xml.sax.SAXException
pConfig
- The request configuration.pCode
- The error codepMessage
- The error messageorg.xml.sax.SAXException
- Writing the error message failed.protected void writeValue(java.lang.Object pObject) throws org.xml.sax.SAXException
pObject
- The object being written.org.xml.sax.SAXException
- Writing the object failed.