@Dataformat(value="json-xstream") @Metadata(includeProperties="prettyPrint,dropRootNode,contentTypeHeader") public class JsonDataFormat extends AbstractXStreamWrapper
| Constructor and Description |
|---|
JsonDataFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected com.thoughtworks.xstream.io.HierarchicalStreamReader |
createHierarchicalStreamReader(org.apache.camel.Exchange exchange,
InputStream stream) |
protected com.thoughtworks.xstream.io.HierarchicalStreamWriter |
createHierarchicalStreamWriter(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream) |
protected com.thoughtworks.xstream.XStream |
createXStream(org.apache.camel.spi.ClassResolver resolver,
ClassLoader classLoader) |
protected void |
doStart() |
String |
getDataFormatName() |
boolean |
isDropRootNode() |
boolean |
isPrettyPrint() |
void |
marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream) |
void |
setDropRootNode(boolean dropRootNode) |
void |
setPrettyPrint(boolean prettyPrint) |
doStop, getAliases, getCamelContext, getConverters, getImplicitCollections, getMode, getModeFromString, getOmitFields, getPermissions, getXstream, getXStream, getXStream, getXstreamDriver, isContentTypeHeader, setAliases, setCamelContext, setContentTypeHeader, setConverters, setImplicitCollections, setMode, setOmitFields, setPermissions, setXstream, setXStream, setXstreamDriver, unmarshalbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic String getDataFormatName()
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
public boolean isDropRootNode()
public void setDropRootNode(boolean dropRootNode)
public void marshal(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream)
throws Exception
marshal in interface org.apache.camel.spi.DataFormatmarshal in class AbstractXStreamWrapperExceptionprotected com.thoughtworks.xstream.XStream createXStream(org.apache.camel.spi.ClassResolver resolver,
ClassLoader classLoader)
createXStream in class AbstractXStreamWrapperprotected com.thoughtworks.xstream.io.HierarchicalStreamWriter createHierarchicalStreamWriter(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream)
throws XMLStreamException
createHierarchicalStreamWriter in class AbstractXStreamWrapperXMLStreamExceptionprotected com.thoughtworks.xstream.io.HierarchicalStreamReader createHierarchicalStreamReader(org.apache.camel.Exchange exchange,
InputStream stream)
throws XMLStreamException
createHierarchicalStreamReader in class AbstractXStreamWrapperXMLStreamExceptionprotected void doStart()
throws Exception
doStart in class AbstractXStreamWrapperExceptionApache Camel