Class GzipResponseAndCallback
java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.server.handler.gzip.GzipResponseAndCallback
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink, Response, org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
public class GzipResponseAndCallback
extends Response.Wrapper
implements org.eclipse.jetty.util.Callback, org.eclipse.jetty.util.thread.Invocable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
org.eclipse.jetty.util.Callback.Completable, org.eclipse.jetty.util.Callback.Completing, org.eclipse.jetty.util.Callback.NestedNested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
org.eclipse.jetty.util.thread.Invocable.Callable, org.eclipse.jetty.util.thread.Invocable.InvocationType, org.eclipse.jetty.util.thread.Invocable.ReadyTask, org.eclipse.jetty.util.thread.Invocable.TaskNested classes/interfaces inherited from interface Response
Response.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Callback
NOOPFields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP -
Constructor Summary
ConstructorsConstructorDescriptionGzipResponseAndCallback(GzipHandler handler, Request request, Response response, org.eclipse.jetty.util.Callback callback) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcommit(boolean last, org.eclipse.jetty.util.Callback callback, ByteBuffer content) voidorg.eclipse.jetty.util.thread.Invocable.InvocationTypevoidvoidvoidwrite(boolean last, ByteBuffer content, org.eclipse.jetty.util.Callback callback) Methods inherited from class Response.Wrapper
getHeaders, getRequest, getStatus, getTrailersSupplier, getWrapped, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, writeInterimMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Callback
completeWith
-
Constructor Details
-
GzipResponseAndCallback
public GzipResponseAndCallback(GzipHandler handler, Request request, Response response, org.eclipse.jetty.util.Callback callback)
-
-
Method Details
-
succeeded
public void succeeded()- Specified by:
succeededin interfaceorg.eclipse.jetty.util.Callback
-
failed
- Specified by:
failedin interfaceorg.eclipse.jetty.util.Callback
-
getInvocationType
public org.eclipse.jetty.util.thread.Invocable.InvocationType getInvocationType()- Specified by:
getInvocationTypein interfaceorg.eclipse.jetty.util.thread.Invocable
-
write
Description copied from interface:ResponseThe invocation of the passed
Callbackis serialized with previous calls of this method, so that it is not invoked until any invocation of the callback of a previous call to this method has returned.Thus a
Callbackshould not block waiting for a callback of a future call to this method.- Specified by:
writein interfaceorg.eclipse.jetty.io.Content.Sink- Specified by:
writein interfaceResponse- Overrides:
writein classResponse.Wrapper- Parameters:
last- whether the ByteBuffer is the last to writecontent- the ByteBuffer to writecallback- the callback to notify when the write operation is complete
-
commit
-
noCompression
public void noCompression()
-