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, copyFrom, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, 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
toString
public String toString()
- Overrides:
toString
in class DefaultMessage
Apache CAMEL