public class ZipFileBackedMessageFactory extends FileBackedMessageFactory
AdaptrisMessage
. Any other entries in the file
will be ignored. This is useful for processing large zip files without having to separately
extract them before sending them in to the adapter.Modifier and Type | Class and Description |
---|---|
static class |
ZipFileBackedMessageFactory.CompressionMode |
Constructor and Description |
---|
ZipFileBackedMessageFactory() |
Modifier and Type | Method and Description |
---|---|
ZipFileBackedMessageFactory.CompressionMode |
getCompressionMode() |
java.lang.Boolean |
getStrict() |
AdaptrisMessage |
newMessage()
Returns a new
AdaptrisMessage . |
void |
setCompressionMode(ZipFileBackedMessageFactory.CompressionMode compressionMode)
The compression mode of the ZipFileBackedMessage.
|
void |
setStrict(java.lang.Boolean b)
Whether or not we fail if the input is not a zip file.
|
createTempFile, defaultBufferSize, extendedLogging, getCreateTempDir, getDefaultBufferSize, getExtendedLogging, getMaxMemorySizeBytes, getTempDirectory, getUseNio, maxMemorySizeBytes, newStreamWrapper, setCreateTempDir, setDefaultBufferSize, setExtendedLogging, setMaxMemorySizeBytes, setTempDirectory, setUseNio, tempDirectory, useNio
getDefaultCharEncoding, newMessage, newMessage, newMessage, newMessage, newMessage, newMessage, newMessage, setDefaultCharEncoding
defaultIfNull, getDefaultInstance, getUniqueIdGenerator, setUniqueIdGenerator, uniqueIdGenerator
public AdaptrisMessage newMessage()
AdaptrisMessageFactory
Returns a new AdaptrisMessage
. Payload and metadata are null.
newMessage
in class FileBackedMessageFactory
AdaptrisMessage
with the specified payload and
metadatapublic ZipFileBackedMessageFactory.CompressionMode getCompressionMode()
public void setCompressionMode(ZipFileBackedMessageFactory.CompressionMode compressionMode)
public java.lang.Boolean getStrict()
public void setStrict(java.lang.Boolean b)
b
- defaults to true if not specified. If set to false, then non-zip input is handled transparently.