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
 GenericFileExchange<T> getExchange()
          Returns the exchange this message is related to
 GenericFile<T> getGenericFile()
           
 GenericFileMessage 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, getHeaders, hasAttachments, hasPopulatedHeaders, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, setAttachments, setHeader, setHeaders
 
Methods inherited from class org.apache.camel.impl.MessageSupport
copy, copyFrom, createMessageId, getBody, getBody, getBody, 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

getExchange

public GenericFileExchange<T> getExchange()
Description copied from interface: Message
Returns the exchange this message is related to

Specified by:
getExchange in interface Message
Overrides:
getExchange in class MessageSupport

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 newInstance()
Description copied from class: MessageSupport
Returns a new instance

Overrides:
newInstance in class DefaultMessage

toString

public String toString()
Overrides:
toString in class DefaultMessage


Copyright © 2009 Apache Software Foundation. All Rights Reserved.