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 org.springframework.core.Ordered
      • setOrder

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

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

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