public class GenericFileMessage<T> extends DefaultMessage
Constructor and Description |
---|
GenericFileMessage()
Deprecated.
|
GenericFileMessage(CamelContext camelContext) |
GenericFileMessage(CamelContext camelContext,
GenericFile<T> file) |
GenericFileMessage(GenericFile<T> file)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(Message that)
Copies the contents of the other message into this message
If you need to do a copy and then set a new body,
then use
Message.copyFromWithNewBody(Message, Object) method instead. |
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() |
addAttachment, addAttachmentObject, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachmentObject, getAttachmentObjects, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, isTransactedRedelivered, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, removeHeaders, removeHeaders, setAttachmentObjects, setAttachments, setFault, setHeader, setHeaders
copy, copyAttachments, copyFromWithNewBody, createMessageId, getBody, getBody, getBody, getCamelContext, getDataType, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, hasDataType, setBody, setBody, setBody, setCamelContext, setDataType, setExchange, setMessageId
@Deprecated public GenericFileMessage()
GenericFileMessage(CamelContext)
public GenericFileMessage(CamelContext camelContext)
@Deprecated public GenericFileMessage(GenericFile<T> file)
GenericFileMessage(CamelContext, GenericFile)
public GenericFileMessage(CamelContext camelContext, GenericFile<T> file)
protected Object createBody()
MessageSupport
createBody
in class MessageSupport
public GenericFile<T> getGenericFile()
public void setGenericFile(GenericFile<T> file)
public GenericFileMessage<T> newInstance()
MessageSupport
newInstance
in class DefaultMessage
public void copyFrom(Message that)
Message
Message.copyFromWithNewBody(Message, Object)
method instead.copyFrom
in interface Message
copyFrom
in class MessageSupport
that
- the other messageMessage.copyFromWithNewBody(Message, Object)
public String toString()
toString
in class MessageSupport
Apache Camel