org.apache.camel.component.file
Class GenericFileMessage<T>

java.lang.Object
  extended by org.apache.camel.impl.MessageSupport
      extended by org.apache.camel.impl.DefaultMessage
          extended by org.apache.camel.component.file.GenericFileMessage<T>
All Implemented Interfaces:
Message

public class GenericFileMessage<T>
extends DefaultMessage

Generic file message


Constructor Summary
GenericFileMessage()
           
GenericFileMessage(GenericFile<T> file)
           
 
Method Summary
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()
           
 
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, copyFrom, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericFileMessage

public GenericFileMessage()

GenericFileMessage

public GenericFileMessage(GenericFile<T> file)
Method Detail

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