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, setHeaderscopy, 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()
MessageSupportcreateBody in class MessageSupportpublic GenericFile<T> getGenericFile()
public void setGenericFile(GenericFile<T> file)
public GenericFileMessage<T> newInstance()
MessageSupportnewInstance in class DefaultMessagepublic void copyFrom(Message that)
MessageMessage.copyFromWithNewBody(Message, Object) method instead.
The returned Message copy will have its Exchange set
to the same Exchange instance as from the source.copyFrom in interface MessagecopyFrom in class MessageSupportthat - the other messageMessage.copyFromWithNewBody(Message, Object)public String toString()
toString in class MessageSupportApache Camel