Package org.eclipse.jetty.client
Class ResponseNotifier
java.lang.Object
org.eclipse.jetty.client.ResponseNotifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forwardFailure
(List<Response.ResponseListener> listeners, Response response, Throwable failure) void
forwardFailureComplete
(List<Response.ResponseListener> listeners, Request request, Throwable requestFailure, Response response, Throwable responseFailure) void
forwardSuccess
(List<Response.ResponseListener> listeners, Response response) void
forwardSuccessComplete
(List<Response.ResponseListener> listeners, Request request, Response response) void
notifyBeforeContent
(Response response, ObjLongConsumer<Object> demand, List<Response.DemandedContentListener> contentListeners) void
notifyBegin
(List<Response.ResponseListener> listeners, Response response) void
notifyComplete
(List<Response.ResponseListener> listeners, Result result) void
notifyContent
(Response response, ObjLongConsumer<Object> demand, ByteBuffer buffer, Callback callback, List<Response.DemandedContentListener> contentListeners) void
notifyFailure
(List<Response.ResponseListener> listeners, Response response, Throwable failure) boolean
notifyHeader
(List<Response.ResponseListener> listeners, Response response, HttpField field) void
notifyHeaders
(List<Response.ResponseListener> listeners, Response response) void
notifySuccess
(List<Response.ResponseListener> listeners, Response response)
-
Constructor Details
-
ResponseNotifier
public ResponseNotifier()
-
-
Method Details
-
notifyBegin
-
notifyHeader
public boolean notifyHeader(List<Response.ResponseListener> listeners, Response response, HttpField field) -
notifyHeaders
-
notifyBeforeContent
public void notifyBeforeContent(Response response, ObjLongConsumer<Object> demand, List<Response.DemandedContentListener> contentListeners) -
notifyContent
public void notifyContent(Response response, ObjLongConsumer<Object> demand, ByteBuffer buffer, Callback callback, List<Response.DemandedContentListener> contentListeners) -
notifySuccess
-
notifyFailure
public void notifyFailure(List<Response.ResponseListener> listeners, Response response, Throwable failure) -
notifyComplete
-
forwardSuccess
-
forwardSuccessComplete
public void forwardSuccessComplete(List<Response.ResponseListener> listeners, Request request, Response response) -
forwardFailure
public void forwardFailure(List<Response.ResponseListener> listeners, Response response, Throwable failure) -
forwardFailureComplete
-