Class ContextResponse
java.lang.Object
org.eclipse.jetty.server.Response.Wrapper
org.eclipse.jetty.server.handler.ContextResponse
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink,Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Response
Response.Wrapper -
Constructor Summary
ConstructorsConstructorDescriptionContextResponse(ContextHandler.ScopedContext context, Request request, Response response) -
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(boolean last, ByteBuffer content, org.eclipse.jetty.util.Callback callback) Methods inherited from class org.eclipse.jetty.server.Response.Wrapper
getHeaders, getRequest, getStatus, getTrailersSupplier, getWrapped, hasLastWrite, isCommitted, isCompletedSuccessfully, reset, setStatus, setTrailersSupplier, writeInterim
-
Constructor Details
-
ContextResponse
-
-
Method Details
-
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
-