|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.converter.jaxb.JaxbDataFormat org.apache.camel.dataformat.soap.SoapJaxbDataFormat
public class SoapJaxbDataFormat
Data format supporting SOAP 1.1 and 1.2.
Field Summary | |
---|---|
static String |
SOAP_UNMARSHALLED_HEADER_LIST
|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Constructor Summary | |
---|---|
SoapJaxbDataFormat()
Remember to set the context path when using this constructor |
|
SoapJaxbDataFormat(String contextPath)
Initialize with JAXB context path |
|
SoapJaxbDataFormat(String contextPath,
ElementNameStrategy elementNameStrategy)
Initialize the data format. |
|
SoapJaxbDataFormat(String contextPath,
String elementNameStrategyRef)
Initialize the data format. |
Method Summary | |
---|---|
protected void |
checkElementNameStrategy(org.apache.camel.Exchange exchange)
|
protected List<JAXBElement<?>> |
createContentFromObject(Object inputObject,
String soapAction,
List<JAXBElement<?>> headerElements)
Create body content from a non Exception object. |
protected JAXBContext |
createContext()
Added the generated SOAP package to the JAXB context so Soap datatypes are available |
protected void |
doStart()
|
ElementNameStrategy |
getElementNameStrategy()
|
String |
getElementNameStrategyRef()
|
String |
getVersion()
|
boolean |
isIgnoreUnmarshalledHeaders()
|
void |
marshal(org.apache.camel.Exchange exchange,
Object inputObject,
OutputStream stream)
Marshal inputObjects to SOAP xml. |
void |
setElementNameStrategy(Object nameStrategy)
|
void |
setElementNameStrategyRef(String elementNameStrategyRef)
|
void |
setIgnoreUnmarshalledHeaders(boolean ignoreUnmarshalledHeaders)
|
void |
setVersion(String version)
|
Object |
unmarshal(org.apache.camel.Exchange exchange,
InputStream stream)
Unmarshal a given SOAP xml stream and return the content of the SOAP body |
Methods inherited from class org.apache.camel.converter.jaxb.JaxbDataFormat |
---|
createMarshaller, createSchemaFactory, createUnmarshaller, doStop, getCamelContext, getContext, getContextPath, getEncoding, getNamespacePrefix, getNamespacePrefixRef, getPartClass, getPartNamespace, getSchema, getSchemaFactory, getXmlStreamWriterWrapper, isFilterNonXmlChars, isFragment, isIgnoreJAXBElement, isPrettyPrint, needFiltering, setCamelContext, setContext, setContextPath, setEncoding, setFilterNonXmlChars, setFragment, setIgnoreJAXBElement, setNamespacePrefix, setNamespacePrefixRef, setPartClass, setPartNamespace, setPrettyPrint, setSchema, setSchemaFactory, setXmlStreamWriterWrapper |
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
doResume, doShutdown, doSuspend, getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SOAP_UNMARSHALLED_HEADER_LIST
Constructor Detail |
---|
public SoapJaxbDataFormat()
public SoapJaxbDataFormat(String contextPath)
public SoapJaxbDataFormat(String contextPath, ElementNameStrategy elementNameStrategy)
public SoapJaxbDataFormat(String contextPath, String elementNameStrategyRef)
Method Detail |
---|
protected void doStart() throws Exception
doStart
in class org.apache.camel.converter.jaxb.JaxbDataFormat
Exception
protected void checkElementNameStrategy(org.apache.camel.Exchange exchange)
public void marshal(org.apache.camel.Exchange exchange, Object inputObject, OutputStream stream) throws IOException, SAXException
marshal
in interface org.apache.camel.spi.DataFormat
marshal
in class org.apache.camel.converter.jaxb.JaxbDataFormat
IOException,SAXException
IOException
SAXException
protected List<JAXBElement<?>> createContentFromObject(Object inputObject, String soapAction, List<JAXBElement<?>> headerElements)
inputObject
- object to be put into the SOAP bodysoapAction
- for name resolutionheaderElements
- in/out parameter used to capture header content if present
public Object unmarshal(org.apache.camel.Exchange exchange, InputStream stream) throws IOException, SAXException
unmarshal
in interface org.apache.camel.spi.DataFormat
unmarshal
in class org.apache.camel.converter.jaxb.JaxbDataFormat
IOException,SAXException
IOException
SAXException
protected JAXBContext createContext() throws JAXBException
createContext
in class org.apache.camel.converter.jaxb.JaxbDataFormat
JAXBException
public ElementNameStrategy getElementNameStrategy()
public void setElementNameStrategy(Object nameStrategy)
public String getElementNameStrategyRef()
public void setElementNameStrategyRef(String elementNameStrategyRef)
public boolean isIgnoreUnmarshalledHeaders()
public void setIgnoreUnmarshalledHeaders(boolean ignoreUnmarshalledHeaders)
public String getVersion()
getVersion
in interface org.apache.camel.StatefulService
getVersion
in class org.apache.camel.support.ServiceSupport
public void setVersion(String version)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |