public class XmlRpcWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSIONS_URI
The namespace URI for proprietary XML-RPC extensions.
|
| Constructor and Description |
|---|
XmlRpcWriter(XmlRpcStreamConfig pConfig,
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,
String pMessage)
Writes a servers error message to the output stream.
|
void |
write(XmlRpcRequestConfig pConfig,
int pCode,
String pMessage,
Throwable pThrowable)
Writes a servers error message to the output stream.
|
void |
write(XmlRpcRequestConfig pConfig,
Object pResult)
Writes a servers response to the output stream.
|
protected void |
writeValue(Object pObject)
Writes the XML representation of a Java object.
|
public static final String EXTENSIONS_URI
public XmlRpcWriter(XmlRpcStreamConfig pConfig, 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 SAXException
pRequest - The request being written.SAXException - Writing the request failed.public void write(XmlRpcRequestConfig pConfig, Object pResult) throws SAXException
pConfig - The request configuration.pResult - The result object.SAXException - Writing the response failed.public void write(XmlRpcRequestConfig pConfig, int pCode, String pMessage) throws SAXException
pConfig - The request configuration.pCode - The error codepMessage - The error messageSAXException - Writing the error message failed.public void write(XmlRpcRequestConfig pConfig, int pCode, String pMessage, Throwable pThrowable) throws SAXException
pConfig - The request configuration.pCode - The error codepMessage - The error messagepThrowable - An exception, which is being sent to the clientSAXException - Writing the error message failed.protected void writeValue(Object pObject) throws SAXException
pObject - The object being written.SAXException - Writing the object failed.Copyright © 2001-2015 The Apache Software Foundation. All Rights Reserved.