Class GzipHttpInputInterceptor
- java.lang.Object
-
- org.eclipse.jetty.server.handler.gzip.GzipHttpInputInterceptor
-
- All Implemented Interfaces:
HttpInput.Interceptor
,Destroyable
public class GzipHttpInputInterceptor extends java.lang.Object implements HttpInput.Interceptor, Destroyable
An HttpInput Interceptor that inflates GZIP encoded request content.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
GzipHttpInputInterceptor.Decoder
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
_chunk
private GzipHttpInputInterceptor.Decoder
_decoder
-
Constructor Summary
Constructors Constructor Description GzipHttpInputInterceptor(ByteBufferPool pool, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
HttpInput.Content
readFrom(HttpInput.Content content)
-
-
-
Field Detail
-
_decoder
private final GzipHttpInputInterceptor.Decoder _decoder
-
_chunk
private java.nio.ByteBuffer _chunk
-
-
Constructor Detail
-
GzipHttpInputInterceptor
public GzipHttpInputInterceptor(ByteBufferPool pool, int bufferSize)
-
-
Method Detail
-
readFrom
public HttpInput.Content readFrom(HttpInput.Content content)
- Specified by:
readFrom
in interfaceHttpInput.Interceptor
- Parameters:
content
- The content to be intercepted (may be empty or aHttpInput.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 interfaceDestroyable
-
-