Class GzipHttpInputInterceptor

  • All Implemented Interfaces:
    HttpInput.Interceptor, org.eclipse.jetty.util.component.Destroyable

    public class GzipHttpInputInterceptor
    extends java.lang.Object
    implements HttpInput.Interceptor, org.eclipse.jetty.util.component.Destroyable
    An HttpInput Interceptor that inflates GZIP encoded request content.
    • Constructor Detail

      • GzipHttpInputInterceptor

        public GzipHttpInputInterceptor​(ByteBufferPool pool,
                                        int bufferSize)
    • Method Detail

      • readFrom

        public HttpInput.Content readFrom​(HttpInput.Content content)
        Specified by:
        readFrom in interface HttpInput.Interceptor
        Parameters:
        content - The content to be intercepted (may be empty or a HttpInput.SentinelContent. The content will be modified with any data the interceptor consumes, but there is no requirement that all the data is consumed by the interceptor.
        Returns:
        The intercepted content or null if interception is completed for that content.
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.eclipse.jetty.util.component.Destroyable