org.apache.camel.converter.jaxb
Class MessageDefinition
java.lang.Object
org.apache.camel.converter.jaxb.MessageDefinition
public class MessageDefinition
- extends Object
Represents a JAXB2 representation of a Camel Message - Important: work in progress!
- Version:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageDefinition
public MessageDefinition()
getBody
public Object getBody()
setBody
public void setBody(Object body)
getHeaders
public List<HeaderDefinition> getHeaders()
setHeaders
public void setHeaders(List<HeaderDefinition> headers)
getHeaderMap
public Map<String,Object> getHeaderMap()
copyFrom
public void copyFrom(org.apache.camel.Message message)
- Copies the headers and body of this object from the given Camel message
- Parameters:
message - the Camel message to read the headers and body from
copyTo
public void copyTo(org.apache.camel.Message message)
- Copies the headers and body of this object to the given Camel message
- Parameters:
message - the camel message to overwrite its headers and body
createHeader
protected HeaderDefinition createHeader(String key,
Object value)
Apache CAMEL