|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlrpc.serializer.XmlRpcWriter
public class XmlRpcWriter
This class is responsible for writing an XmlRpc request or an XmlRpc response to an output stream.
| Field Summary | |
|---|---|
static java.lang.String |
EXTENSIONS_URI
The namespace URI for proprietary XML-RPC extensions. |
| Constructor Summary | |
|---|---|
XmlRpcWriter(XmlRpcStreamConfig pConfig,
org.xml.sax.ContentHandler pHandler,
TypeFactory pTypeFactory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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,
int pCode,
java.lang.String pMessage,
java.lang.Throwable pThrowable)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXTENSIONS_URI
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 message
org.xml.sax.SAXException - Writing the error message failed.
public void write(XmlRpcRequestConfig pConfig,
int pCode,
java.lang.String pMessage,
java.lang.Throwable pThrowable)
throws org.xml.sax.SAXException
pConfig - The request configuration.pCode - The error codepMessage - The error messagepThrowable - An exception, which is being sent to the client
org.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||