public class GenericFileMessage<T> extends DefaultMessage
Constructor and Description |
---|
GenericFileMessage() |
GenericFileMessage(GenericFile<T> file) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Message that)
Copies the contents of the other message into this message
|
protected Object |
createBody()
A factory method to allow a provider to lazily create the message body
for inbound messages from other sources
|
GenericFile<T> |
getGenericFile() |
GenericFileMessage<T> |
newInstance()
Returns a new instance
|
void |
setGenericFile(GenericFile<T> file) |
String |
toString() |
addAttachment, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, isTransactedRedelivered, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, removeHeaders, removeHeaders, setAttachments, setFault, setHeader, setHeaders
copy, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId
public GenericFileMessage()
public GenericFileMessage(GenericFile<T> file)
protected Object createBody()
MessageSupport
createBody
in class MessageSupport
public GenericFile<T> getGenericFile()
public void setGenericFile(GenericFile<T> file)
public GenericFileMessage<T> newInstance()
MessageSupport
newInstance
in class DefaultMessage
public void copyFrom(Message that)
Message
copyFrom
in interface Message
copyFrom
in class MessageSupport
that
- the other messagepublic String toString()
toString
in class DefaultMessage
Apache Camel