org.apache.camel.component.file
Class FileMessage

java.lang.Object
  extended by org.apache.camel.impl.MessageSupport
      extended by org.apache.camel.impl.DefaultMessage
          extended by org.apache.camel.component.file.FileMessage
All Implemented Interfaces:
Message

public class FileMessage
extends DefaultMessage

A Message for File

Version:
$Revision: 568 $

Constructor Summary
FileMessage()
           
FileMessage(File 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
 FileExchange getExchange()
          Returns the exchange this message is related to
 File getFile()
           
 FileMessage newInstance()
          Returns a new instance
 void setFile(File file)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.DefaultMessage
addAttachment, createAttachments, 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, getMessageId, setBody, setBody, setExchange, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileMessage

public FileMessage()

FileMessage

public FileMessage(File file)
Method Detail

toString

public String toString()
Overrides:
toString in class DefaultMessage

getExchange

public FileExchange 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

getFile

public File getFile()

setFile

public void setFile(File file)

newInstance

public FileMessage newInstance()
Description copied from class: MessageSupport
Returns a new instance

Overrides:
newInstance in class DefaultMessage

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


Copyright © 2010 IONA Open Source Community. All Rights Reserved.