org.apache.camel.dataformat.xmlrpc
Class XmlRpcDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.xmlrpc.XmlRpcDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class XmlRpcDataFormat
extends Object
implements org.apache.camel.spi.DataFormat


Constructor Summary
XmlRpcDataFormat()
           
 
Method Summary
protected  int getErrorCode(org.apache.camel.Exchange exchange)
           
 org.apache.xmlrpc.common.TypeFactory getTypeFactory()
           
 org.apache.xmlrpc.common.XmlRpcStreamRequestConfig getXmlRpcStreamRequestConfig()
           
protected  org.apache.ws.commons.serialize.XMLWriter getXMLWriter(org.apache.camel.Exchange exchange, OutputStream outputStream)
           
 boolean isRequest()
           
 void marshal(org.apache.camel.Exchange exchange, Object graph, OutputStream stream)
           
protected  XMLReader newXMLReader()
           
 void setRequest(boolean isRequest)
           
 void setTypeFactory(org.apache.xmlrpc.common.TypeFactory typeFactory)
           
 void setXmlRpcStreamRequestConfig(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig config)
           
 Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream)
           
protected  Object unmarshalRequest(org.apache.camel.Exchange exchange, InputStream stream)
           
protected  Object unmarshalResponse(org.apache.camel.Exchange exchange, InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRpcDataFormat

public XmlRpcDataFormat()
Method Detail

getXMLWriter

protected org.apache.ws.commons.serialize.XMLWriter getXMLWriter(org.apache.camel.Exchange exchange,
                                                                 OutputStream outputStream)
                                                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object graph,
                    OutputStream stream)
             throws Exception
Specified by:
marshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

getErrorCode

protected int getErrorCode(org.apache.camel.Exchange exchange)

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream stream)
                 throws Exception
Specified by:
unmarshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

unmarshalResponse

protected Object unmarshalResponse(org.apache.camel.Exchange exchange,
                                   InputStream stream)
                            throws Exception
Throws:
Exception

unmarshalRequest

protected Object unmarshalRequest(org.apache.camel.Exchange exchange,
                                  InputStream stream)
                           throws Exception
Throws:
Exception

newXMLReader

protected XMLReader newXMLReader()
                          throws org.apache.xmlrpc.XmlRpcException
Throws:
org.apache.xmlrpc.XmlRpcException

isRequest

public boolean isRequest()

setRequest

public void setRequest(boolean isRequest)

setXmlRpcStreamRequestConfig

public void setXmlRpcStreamRequestConfig(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig config)

getXmlRpcStreamRequestConfig

public org.apache.xmlrpc.common.XmlRpcStreamRequestConfig getXmlRpcStreamRequestConfig()

setTypeFactory

public void setTypeFactory(org.apache.xmlrpc.common.TypeFactory typeFactory)

getTypeFactory

public org.apache.xmlrpc.common.TypeFactory getTypeFactory()


Apache Camel