public class JibxDataFormat
extends org.apache.camel.support.ServiceSupport
implements org.apache.camel.spi.DataFormat, org.apache.camel.spi.DataFormatName
Modifier and Type | Field and Description |
---|---|
static String |
UNMARSHALL_CLASS |
Constructor and Description |
---|
JibxDataFormat() |
JibxDataFormat(Class<?> unmarshallClass) |
JibxDataFormat(Class<?> unmarshallClass,
String bindingName) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
String |
getBindingName() |
String |
getDataFormatName() |
Class<?> |
getUnmarshallClass() |
void |
marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream) |
void |
setBindingName(String bindingName) |
void |
setUnmarshallClass(Class<?> unmarshallClass) |
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream) |
public static final String UNMARSHALL_CLASS
public JibxDataFormat()
public JibxDataFormat(Class<?> unmarshallClass)
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 Class<?> getUnmarshallClass()
public void setUnmarshallClass(Class<?> unmarshallClass)
public String getBindingName()
public void setBindingName(String bindingName)
Apache Camel