Package com.adaptris.core.lms
Interface FileBackedMessage
-
- All Superinterfaces:
AdaptrisMessage
,InterlokMessage
public interface FileBackedMessage extends AdaptrisMessage
Represents a message in the framework which is backed by a file on the filesystem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.File
currentSource()
Returns the current file that is the source of the message.void
initialiseFrom(java.io.File sourceObject)
Initialise this AdaptrisMessage from an existing object.-
Methods inherited from interface com.adaptris.core.AdaptrisMessage
addEvent, addMetadata, addMetadata, addMetadata, addObjectMetadata, clearMetadata, clone, containsKey, encode, equivalentForTracking, getCharEncoding, getFactory, getMessageLifecycleEvent, getMetadata, getMetadata, getMetadataValue, getMetadataValueIgnoreKeyCase, getNextServiceId, getObjectMetadata, getPayload, getPayloadForLogging, getSize, getStringPayload, removeMetadata, replaceAllMetadata, setCharEncoding, setMetadata, setNextServiceId, setPayload, setStringPayload, setStringPayload
-
Methods inherited from interface com.adaptris.interlok.types.InterlokMessage
addMessageHeader, addMessageHeaders, addObjectHeader, clearMessageHeaders, getContent, getContentEncoding, getInputStream, getMessageHeaders, getObjectHeaders, getOutputStream, getReader, getUniqueId, getWriter, getWriter, headersContainsKey, removeMessageHeader, replaceAllMessageHeaders, resolve, resolve, resolveObject, setContent, setContentEncoding, setMessageHeaders, setUniqueId, wrap
-
-
-
-
Method Detail
-
initialiseFrom
void initialiseFrom(java.io.File sourceObject) throws java.io.IOException, java.lang.RuntimeException
Initialise this AdaptrisMessage from an existing object.- Parameters:
sourceObject
- the source file to initialise from.- Throws:
java.io.IOException
- wrapping any access error.java.lang.RuntimeException
-
currentSource
java.io.File currentSource()
Returns the current file that is the source of the message.- Returns:
- the current source file.
-
-