Class InflaterPostProcessor
java.lang.Object
org.springframework.amqp.support.postprocessor.AbstractDecompressingPostProcessor
org.springframework.amqp.support.postprocessor.InflaterPostProcessor
- All Implemented Interfaces:
MessagePostProcessor, org.springframework.core.Ordered
A post processor that uses a
InflaterInputStream to decompress the
message body.- Since:
- 2.2
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamgetDecompressorStream(InputStream zipped) Get the stream.protected StringGet the encoding.Methods inherited from class AbstractDecompressingPostProcessor
getOrder, postProcessMessage, setOrderMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MessagePostProcessor
postProcessMessage, postProcessMessage
-
Constructor Details
-
InflaterPostProcessor
public InflaterPostProcessor() -
InflaterPostProcessor
public InflaterPostProcessor(boolean alwaysDecompress)
-
-
Method Details
-
getDecompressorStream
Description copied from class:AbstractDecompressingPostProcessorGet the stream.- Specified by:
getDecompressorStreamin classAbstractDecompressingPostProcessor- Parameters:
zipped- The output stream to write the compressed data to.- Returns:
- the decompressor input stream.
-
getEncoding
Description copied from class:AbstractDecompressingPostProcessorGet the encoding.- Specified by:
getEncodingin classAbstractDecompressingPostProcessor- Returns:
- the content-encoding header.
-