Uses of Interface
org.eclipse.jetty.client.api.Response
Packages that use Response
Package
Description
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
Jetty Client : API Classes
Jetty Client : Utility Classes
-
Uses of Response in org.eclipse.jetty.client
Classes in org.eclipse.jetty.client that implement ResponseFields in org.eclipse.jetty.client declared as ResponseModifier and TypeFieldDescriptionprivate final Response
HttpContentResponse.response
private final Response
HttpResponseException.response
Methods in org.eclipse.jetty.client that return ResponseMethods in org.eclipse.jetty.client with parameters of type ResponseModifier and TypeMethodDescriptionboolean
boolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.boolean
boolean
boolean
HttpRedirector.extractRedirectURI
(Response response) Extracts and sanitizes (by making it absolute and escaping paths and query parameters) the redirect URI of the givenresponse
.protected void
Finds the first protocol handler thataccepts
the given request and response.protected ProtocolHandler
HttpClient.findProtocolHandler
(Request request, Response response) private void
ResponseNotifier.forwardEvents
(List<Response.ResponseListener> listeners, Response response) void
ResponseNotifier.forwardFailure
(List<Response.ResponseListener> listeners, Response response, Throwable failure) private void
AuthenticationProtocolHandler.AuthenticationListener.forwardFailureComplete
(HttpRequest request, Throwable requestFailure, Response response, Throwable responseFailure) void
ResponseNotifier.forwardFailureComplete
(List<Response.ResponseListener> listeners, Request request, Throwable requestFailure, Response response, Throwable responseFailure) void
ResponseNotifier.forwardSuccess
(List<Response.ResponseListener> listeners, Response response) private void
AuthenticationProtocolHandler.AuthenticationListener.forwardSuccessComplete
(HttpRequest request, Response response) void
ResponseNotifier.forwardSuccessComplete
(List<Response.ResponseListener> listeners, Request request, Response response) boolean
HttpRedirector.isRedirect
(Response response) private void
ResponseNotifier.notifyBeforeContent
(Response.DemandedContentListener listener, Response response, LongConsumer demand) void
ResponseNotifier.notifyBeforeContent
(Response response, ObjLongConsumer<Object> demand, List<Response.DemandedContentListener> contentListeners) void
ResponseNotifier.notifyBegin
(List<Response.ResponseListener> listeners, Response response) private void
ResponseNotifier.notifyBegin
(Response.BeginListener listener, Response response) private void
ResponseNotifier.notifyContent
(Response.DemandedContentListener listener, Response response, LongConsumer demand, ByteBuffer buffer, Callback callback) void
ResponseNotifier.notifyContent
(Response response, ObjLongConsumer<Object> demand, ByteBuffer buffer, Callback callback, List<Response.DemandedContentListener> contentListeners) void
ResponseNotifier.notifyFailure
(List<Response.ResponseListener> listeners, Response response, Throwable failure) private void
ResponseNotifier.notifyFailure
(Response.FailureListener listener, Response response, Throwable failure) boolean
ResponseNotifier.notifyHeader
(List<Response.ResponseListener> listeners, Response response, HttpField field) private boolean
ResponseNotifier.notifyHeader
(Response.HeaderListener listener, Response response, HttpField field) void
ResponseNotifier.notifyHeaders
(List<Response.ResponseListener> listeners, Response response) private void
ResponseNotifier.notifyHeaders
(Response.HeadersListener listener, Response response) void
ResponseNotifier.notifySuccess
(List<Response.ResponseListener> listeners, Response response) private void
ResponseNotifier.notifySuccess
(Response.SuccessListener listener, Response response) void
boolean
void
void
private List
<Authentication.HeaderInfo> AuthenticationProtocolHandler.AuthenticationListener.parseAuthenticateHeader
(Response response, HttpHeader header) Redirects the givenresponse
, blocking until the redirect is complete.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.private Request
HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener, URI newURI) private Request
HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener, URI location, String method) private Request
HttpRedirector.sendRedirect
(HttpRequest httpRequest, Response response, Response.CompleteListener listener, URI location, String method) Constructors in org.eclipse.jetty.client with parameters of type ResponseModifierConstructorDescriptionHttpContentResponse
(Response response, byte[] content, String mediaType, String encoding) HttpResponseException
(String message, Response response) HttpResponseException
(String message, Response response, Throwable cause) -
Uses of Response in org.eclipse.jetty.client.api
Subinterfaces of Response in org.eclipse.jetty.client.apiModifier and TypeInterfaceDescriptioninterface
A specializedResponse
that can hold a limited content in memory.Fields in org.eclipse.jetty.client.api declared as ResponseMethods in org.eclipse.jetty.client.api that return ResponseMethods in org.eclipse.jetty.client.api with parameters of type ResponseModifier and TypeMethodDescriptiondefault void
Response.DemandedContentListener.onBeforeContent
(Response response, LongConsumer demand) Callback method invoked before response content events.void
Callback method invoked when the response line containing HTTP version, HTTP status code and reason has been received and parsed.default void
void
Response.AsyncContentListener.onContent
(Response response, ByteBuffer content, Callback callback) Callback method invoked when the response content has been received, parsed and there is demand.default void
Response.AsyncContentListener.onContent
(Response response, LongConsumer demand, ByteBuffer content, Callback callback) void
Response.ContentListener.onContent
(Response response, ByteBuffer content) Callback method invoked when the response content has been received, parsed and there is demand.default void
Response.ContentListener.onContent
(Response response, ByteBuffer content, Callback callback) void
Response.DemandedContentListener.onContent
(Response response, LongConsumer demand, ByteBuffer content, Callback callback) Callback method invoked when the response content has been received.default void
Response.Listener.onContent
(Response response, ByteBuffer content) void
Callback method invoked when the response has failed in the process of being receiveddefault void
boolean
Callback method invoked when a response header has been received and parsed, returning whether the header should be processed or not.default boolean
void
Callback method invoked when all the response headers have been received and parsed.default void
default void
void
Callback method invoked when the whole response has been successfully received.Constructors in org.eclipse.jetty.client.api with parameters of type ResponseModifierConstructorDescription -
Uses of Response in org.eclipse.jetty.client.util
Fields in org.eclipse.jetty.client.util declared as ResponseMethods in org.eclipse.jetty.client.util that return ResponseModifier and TypeMethodDescriptionWaits for the given timeout for the response to be available, then returns it.Methods in org.eclipse.jetty.client.util with parameters of type ResponseModifier and TypeMethodDescriptionvoid
BufferingResponseListener.onContent
(Response response, ByteBuffer content) void
InputStreamResponseListener.onContent
(Response response, ByteBuffer content, Callback callback) void
void
void
void