public class XmlBeansDataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
DataFormat
) using XmlBeans to marshal to and from XMLConstructor and Description |
---|
XmlBeansDataFormat() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
String |
getDataFormatName() |
boolean |
isContentTypeHeader() |
void |
marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream) |
void |
setContentTypeHeader(boolean contentTypeHeader)
If enabled then XmlBeans will set the Content-Type header to application/xml when marshalling.
|
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream) |
public String getDataFormatName()
getDataFormatName
in interface org.apache.camel.spi.DataFormatName
public void marshal(org.apache.camel.Exchange exchange, Object body, OutputStream stream) throws Exception
marshal
in interface org.apache.camel.spi.DataFormat
Exception
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream) throws Exception
unmarshal
in interface org.apache.camel.spi.DataFormat
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.ServiceSupport
Exception
public boolean isContentTypeHeader()
public void setContentTypeHeader(boolean contentTypeHeader)
Apache Camel