org.apache.camel.component.cxf
Class CxfPayload<T>
java.lang.Object
org.apache.camel.component.cxf.CxfPayload<T>
public class CxfPayload<T>
- extends Object
CxfMessage body type when DataFormat.PAYLOAD is used.
- Version:
CxfPayload
public CxfPayload(List<T> headers,
List<Source> body,
Map<String,String> nsMap)
CxfPayload
public CxfPayload(List<T> headers,
List<Element> body)
getBody
public List<Element> getBody()
- Get the body as a List of DOM elements.
This will cause the Body to be fully read and parsed.
- Returns:
addNamespace
protected static void addNamespace(Element element,
Map<String,String> nsMap)
getBodySources
public List<Source> getBodySources()
- Gets the body as a List of source objects. If possible, the Source objects
will likely be StaxSource or similar that allows streaming. If you plan to
modify or use the Source, be careful that the result is still usable by
the Camel runtime.
- Returns:
getHeaders
public List<T> getHeaders()
toString
public String toString()
- Overrides:
toString in class Object
Apache Camel