Class AbstractDecompressingPostProcessor

    • Constructor Detail

      • AbstractDecompressingPostProcessor

        public AbstractDecompressingPostProcessor()
        Construct a post processor that will decompress the supported content encoding only if MessageProperties.SPRING_AUTO_DECOMPRESS header is present and true.
      • AbstractDecompressingPostProcessor

        public AbstractDecompressingPostProcessor​(boolean alwaysDecompress)
        Construct a post processor that will decompress the supported content encoding if MessageProperties.SPRING_AUTO_DECOMPRESS header is present and true or if alwaysDecompress is true.
        Parameters:
        alwaysDecompress - true to always decompress.
    • Method Detail

      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface Ordered
      • setOrder

        protected void setOrder​(int order)
        Set the order.
        Parameters:
        order - the order, default 0.
        See Also:
        Ordered
      • getDecompressorStream

        protected abstract InputStream getDecompressorStream​(InputStream stream)
                                                      throws IOException
        Get the stream.
        Parameters:
        stream - The output stream to write the compressed data to.
        Returns:
        the decompressor input stream.
        Throws:
        IOException - IOException
      • getEncoding

        protected abstract String getEncoding()
        Get the encoding.
        Returns:
        the content-encoding header.