Class GzipHttpOutputInterceptor
- java.lang.Object
 - 
- org.eclipse.jetty.server.handler.gzip.GzipHttpOutputInterceptor
 
 
- 
- All Implemented Interfaces:
 HttpOutput.Interceptor
@Deprecated(since="2021-05-27") public class GzipHttpOutputInterceptor extends java.lang.Object implements HttpOutput.Interceptor
Deprecated. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static LoggerLOGDeprecated.static HttpFieldVARY_ACCEPT_ENCODINGDeprecated.static HttpFieldVARY_ACCEPT_ENCODING_USER_AGENTDeprecated. 
- 
Constructor Summary
Constructors Constructor Description GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, int bufferSize, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)Deprecated.GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)Deprecated.GzipHttpOutputInterceptor(GzipFactory factory, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)Deprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HttpOutput.InterceptorgetNextInterceptor()Deprecated.booleanisOptimizedForDirectBuffers()Deprecated.booleanmightCompress()Deprecated.voidnoCompression()Deprecated.voidnoCompressionIfPossible()Deprecated.voidwrite(java.nio.ByteBuffer content, boolean complete, Callback callback)Deprecated.Write content.- 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.eclipse.jetty.server.HttpOutput.Interceptor
resetBuffer 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
GzipHttpOutputInterceptor
public GzipHttpOutputInterceptor(GzipFactory factory, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
Deprecated. 
- 
GzipHttpOutputInterceptor
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
Deprecated. 
- 
GzipHttpOutputInterceptor
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, int bufferSize, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
Deprecated. 
 - 
 
- 
Method Detail
- 
getNextInterceptor
public HttpOutput.Interceptor getNextInterceptor()
Deprecated.- Specified by:
 getNextInterceptorin interfaceHttpOutput.Interceptor- Returns:
 - The next Interceptor in the chain or null if this is the last Interceptor in the chain.
 
 
- 
isOptimizedForDirectBuffers
public boolean isOptimizedForDirectBuffers()
Deprecated.- Specified by:
 isOptimizedForDirectBuffersin interfaceHttpOutput.Interceptor- Returns:
 - True if the Interceptor is optimized to receive direct
 
ByteBuffers in theHttpOutput.Interceptor.write(ByteBuffer, boolean, Callback)method. If false is returned, then passing direct buffers may cause inefficiencies. 
 
- 
write
public void write(java.nio.ByteBuffer content, boolean complete, Callback callback)Deprecated.Description copied from interface:HttpOutput.InterceptorWrite content. The response is committed by the first call to write and is closed by a call with last == true. Empty content buffers may be passed to force a commit or close.- Specified by:
 writein interfaceHttpOutput.Interceptor- Parameters:
 content- The content to be written or an empty buffer.complete- True if this is the last call to writecallback- The callback to use to indicateCallback.succeeded()orCallback.failed(Throwable).
 
- 
noCompression
public void noCompression()
Deprecated. 
- 
noCompressionIfPossible
public void noCompressionIfPossible()
Deprecated. 
- 
mightCompress
public boolean mightCompress()
Deprecated. 
 - 
 
 -