Class CxfPayload<T>
- java.lang.Object
-
- org.apache.camel.component.cxf.common.CxfPayload<T>
-
- Direct Known Subclasses:
CachedCxfPayload
public class CxfPayload<T> extends Object
CxfMessage body type whenDataFormat.PAYLOADis used.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddNamespace(Element element, Map<String,String> nsMap)List<Element>getBody()Get the body as a List of DOM elements.List<Source>getBodySources()Gets the body as a List of source objects.List<T>getHeaders()Map<String,String>getNsMap()voidsetBodySources(List<Source> body)StringtoString()
-
-
-
Method Detail
-
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:
-
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:
-
-