org.apache.camel.component.file
Class GenericFileMessage<T>
java.lang.Object
org.apache.camel.impl.MessageSupport
org.apache.camel.impl.DefaultMessage
org.apache.camel.component.file.GenericFileMessage<T>
- All Implemented Interfaces:
- Message
public class GenericFileMessage<T>
- extends DefaultMessage
Generic file message
Methods inherited from class org.apache.camel.impl.DefaultMessage |
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 |
Methods inherited from class org.apache.camel.impl.MessageSupport |
copy, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId |
GenericFileMessage
public GenericFileMessage()
GenericFileMessage
public GenericFileMessage(GenericFile<T> file)
createBody
protected Object createBody()
- Description copied from class:
MessageSupport
- A factory method to allow a provider to lazily create the message body
for inbound messages from other sources
- Overrides:
createBody
in class MessageSupport
- Returns:
- the value of the message body or null if there is no value
available
getGenericFile
public GenericFile<T> getGenericFile()
setGenericFile
public void setGenericFile(GenericFile<T> file)
newInstance
public GenericFileMessage<T> newInstance()
- Description copied from class:
MessageSupport
- Returns a new instance
- Overrides:
newInstance
in class DefaultMessage
copyFrom
public void copyFrom(Message that)
- Description copied from interface:
Message
- Copies the contents of the other message into this message
- Specified by:
copyFrom
in interface Message
- Overrides:
copyFrom
in class MessageSupport
- Parameters:
that
- the other message
toString
public String toString()
- Overrides:
toString
in class DefaultMessage
Apache Camel