org.apache.xmlrpc.serializer
Class XmlRpcWriter
java.lang.Objectorg.apache.xmlrpc.serializer.XmlRpcWriter
public class XmlRpcWriter
extends java.lang.Object
This class is responsible for writing an XmlRpc request or an
XmlRpc response to an output stream.
static String | EXTENSIONS_URI- The namespace URI for proprietary XML-RPC extensions.
|
void | write(XmlRpcRequest pRequest)- Writes a clients request to the output stream.
|
void | write(XmlRpcRequestConfig pConfig, Object pResult)- Writes a servers response 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.
|
protected void | writeValue(Object pObject)- Writes the XML representation of a Java object.
|
EXTENSIONS_URI
public static final String EXTENSIONS_URI
The namespace URI for proprietary XML-RPC extensions.
XmlRpcWriter
public XmlRpcWriter(XmlRpcStreamConfig pConfig,
ContentHandler pHandler,
TypeFactory pTypeFactory)Creates a new instance.
pConfig - The clients configuration.pHandler - The target SAX handler.pTypeFactory - The type factory being used to create serializers.
write
public void write(XmlRpcRequest pRequest)
throws SAXExceptionWrites a clients request to the output stream.
pRequest - The request being written.
write
public void write(XmlRpcRequestConfig pConfig,
Object pResult)
throws SAXExceptionWrites a servers response to the output stream.
pConfig - The request configuration.pResult - The result object.
write
public void write(XmlRpcRequestConfig pConfig,
int pCode,
String pMessage)
throws SAXExceptionWrites a servers error message to the output stream.
pConfig - The request configuration.pCode - The error codepMessage - The error message
write
public void write(XmlRpcRequestConfig pConfig,
int pCode,
String pMessage,
Throwable pThrowable)
throws SAXExceptionWrites a servers error message to the output stream.
pConfig - The request configuration.pCode - The error codepMessage - The error messagepThrowable - An exception, which is being sent to the client
writeValue
protected void writeValue(Object pObject)
throws SAXExceptionWrites the XML representation of a Java object.
pObject - The object being written.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.