|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.converter.jaxb.JaxbDataFormat
public class JaxbDataFormat
A data format (DataFormat)
using JAXB2 to marshal to and from XML
| Constructor Summary | |
|---|---|
JaxbDataFormat()
|
|
JaxbDataFormat(JAXBContext context)
|
|
JaxbDataFormat(String contextPath)
|
|
| Method Summary | |
|---|---|
protected JAXBContext |
createContext()
Strategy to create JAXB context |
protected void |
doStart()
|
protected void |
doStop()
|
CamelContext |
getCamelContext()
Get the CamelContext |
JAXBContext |
getContext()
|
String |
getContextPath()
|
String |
getEncoding()
|
String |
getPartClass()
|
QName |
getPartNamespace()
|
boolean |
isFilterNonXmlChars()
|
boolean |
isIgnoreJAXBElement()
|
boolean |
isPrettyPrint()
|
void |
marshal(Exchange exchange,
Object graph,
OutputStream stream)
Marshals the object to the given Stream. |
protected boolean |
needFiltering(Exchange exchange)
|
void |
setCamelContext(CamelContext camelContext)
Injects the CamelContext |
void |
setContext(JAXBContext context)
|
void |
setContextPath(String contextPath)
|
void |
setEncoding(String encoding)
|
void |
setFilterNonXmlChars(boolean filterNonXmlChars)
|
void |
setIgnoreJAXBElement(boolean flag)
|
void |
setPartClass(String partClass)
|
void |
setPartNamespace(QName partNamespace)
|
void |
setPrettyPrint(boolean prettyPrint)
|
Object |
unmarshal(Exchange exchange,
InputStream stream)
Unmarshals the given stream into an object. |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JaxbDataFormat()
public JaxbDataFormat(JAXBContext context)
public JaxbDataFormat(String contextPath)
| Method Detail |
|---|
public void marshal(Exchange exchange,
Object graph,
OutputStream stream)
throws IOException
DataFormat
marshal in interface DataFormatexchange - the current exchangegraph - the object to be marshalledstream - the output stream to write the marshalled result to
IOException
public Object unmarshal(Exchange exchange,
InputStream stream)
throws IOException
DataFormat
unmarshal in interface DataFormatexchange - the current exchangestream - the input stream with the object to be unmarshalled
IOExceptionprotected boolean needFiltering(Exchange exchange)
public boolean isIgnoreJAXBElement()
public void setIgnoreJAXBElement(boolean flag)
public JAXBContext getContext()
public void setContext(JAXBContext context)
public String getContextPath()
public void setContextPath(String contextPath)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
public boolean isFilterNonXmlChars()
public void setFilterNonXmlChars(boolean filterNonXmlChars)
public String getEncoding()
public void setEncoding(String encoding)
public QName getPartNamespace()
public void setPartNamespace(QName partNamespace)
public String getPartClass()
public void setPartClass(String partClass)
public CamelContext getCamelContext()
CamelContextAwareCamelContext
getCamelContext in interface CamelContextAwarepublic void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContext
setCamelContext in interface CamelContextAwarecamelContext - the Camel context
protected void doStart()
throws Exception
doStart in class ServiceSupportException
protected void doStop()
throws Exception
doStop in class ServiceSupportException
protected JAXBContext createContext()
throws JAXBException
JAXBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||