Uses of Interface
org.eclipse.jetty.client.api.Response
-
Packages that use Response Package Description org.eclipse.jetty.client Jetty Client : Implementation and Core Classes This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.org.eclipse.jetty.client.api Jetty Client : API Classesorg.eclipse.jetty.client.util Jetty Client : Utility Classes -
-
Uses of Response in org.eclipse.jetty.client
Classes in org.eclipse.jetty.client that implement Response Modifier and Type Class Description class
HttpContentResponse
class
HttpResponse
Fields in org.eclipse.jetty.client declared as Response Modifier and Type Field Description private Response
HttpContentResponse. response
private Response
HttpResponseException. response
Methods in org.eclipse.jetty.client that return Response Modifier and Type Method Description Response
HttpResponseException. getResponse()
Methods in org.eclipse.jetty.client with parameters of type Response Modifier and Type Method Description boolean
ContinueProtocolHandler. accept(Request request, Response response)
boolean
ProtocolHandler. accept(Request request, Response response)
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.boolean
ProxyAuthenticationProtocolHandler. accept(Request request, Response response)
boolean
RedirectProtocolHandler. accept(Request request, Response response)
boolean
WWWAuthenticationProtocolHandler. accept(Request request, Response response)
java.net.URI
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
HttpRedirector. fail(Request request, Response response, java.lang.Throwable failure)
ProtocolHandler
ProtocolHandlers. find(Request request, Response response)
Finds the first protocol handler thataccepts
the given request and response.protected ProtocolHandler
HttpClient. findProtocolHandler(Request request, Response response)
private void
ResponseNotifier. forwardEvents(java.util.List<Response.ResponseListener> listeners, Response response)
void
ResponseNotifier. forwardFailure(java.util.List<Response.ResponseListener> listeners, Response response, java.lang.Throwable failure)
private void
AuthenticationProtocolHandler.AuthenticationListener. forwardFailureComplete(HttpRequest request, java.lang.Throwable requestFailure, Response response, java.lang.Throwable responseFailure)
void
ResponseNotifier. forwardFailureComplete(java.util.List<Response.ResponseListener> listeners, Request request, java.lang.Throwable requestFailure, Response response, java.lang.Throwable responseFailure)
void
ResponseNotifier. forwardSuccess(java.util.List<Response.ResponseListener> listeners, Response response)
private void
AuthenticationProtocolHandler.AuthenticationListener. forwardSuccessComplete(HttpRequest request, Response response)
void
ResponseNotifier. forwardSuccessComplete(java.util.List<Response.ResponseListener> listeners, Request request, Response response)
boolean
HttpRedirector. isRedirect(Response response)
private void
ResponseNotifier. notifyBeforeContent(Response.DemandedContentListener listener, Response response, java.util.function.LongConsumer demand)
void
ResponseNotifier. notifyBeforeContent(Response response, java.util.function.ObjLongConsumer<java.lang.Object> demand, java.util.List<Response.DemandedContentListener> contentListeners)
void
ResponseNotifier. notifyBegin(java.util.List<Response.ResponseListener> listeners, Response response)
private void
ResponseNotifier. notifyBegin(Response.BeginListener listener, Response response)
private void
ResponseNotifier. notifyContent(Response.DemandedContentListener listener, Response response, java.util.function.LongConsumer demand, java.nio.ByteBuffer buffer, Callback callback)
void
ResponseNotifier. notifyContent(Response response, java.util.function.ObjLongConsumer<java.lang.Object> demand, java.nio.ByteBuffer buffer, Callback callback, java.util.List<Response.DemandedContentListener> contentListeners)
void
ResponseNotifier. notifyFailure(java.util.List<Response.ResponseListener> listeners, Response response, java.lang.Throwable failure)
private void
ResponseNotifier. notifyFailure(Response.FailureListener listener, Response response, java.lang.Throwable failure)
boolean
ResponseNotifier. notifyHeader(java.util.List<Response.ResponseListener> listeners, Response response, HttpField field)
private boolean
ResponseNotifier. notifyHeader(Response.HeaderListener listener, Response response, HttpField field)
void
ResponseNotifier. notifyHeaders(java.util.List<Response.ResponseListener> listeners, Response response)
private void
ResponseNotifier. notifyHeaders(Response.HeadersListener listener, Response response)
void
ResponseNotifier. notifySuccess(java.util.List<Response.ResponseListener> listeners, Response response)
private void
ResponseNotifier. notifySuccess(Response.SuccessListener listener, Response response)
void
ContinueProtocolHandler.ContinueListener. onFailure(Response response, java.lang.Throwable failure)
boolean
RedirectProtocolHandler. onHeader(Response response, HttpField field)
void
AuthenticationProtocolHandler.AfterAuthenticationListener. onSuccess(Response response)
void
ContinueProtocolHandler.ContinueListener. onSuccess(Response response)
private java.util.List<Authentication.HeaderInfo>
AuthenticationProtocolHandler.AuthenticationListener. parseAuthenticateHeader(Response response, HttpHeader header)
Result
HttpRedirector. redirect(Request request, Response response)
Redirects the givenresponse
, blocking until the redirect is complete.Request
HttpRedirector. redirect(Request request, Response response, Response.CompleteListener listener)
Redirects the givenresponse
asynchronously.private Request
HttpRedirector. redirect(Request request, Response response, Response.CompleteListener listener, java.net.URI newURI)
private Request
HttpRedirector. redirect(Request request, Response response, Response.CompleteListener listener, java.net.URI location, java.lang.String method)
private Request
HttpRedirector. sendRedirect(HttpRequest httpRequest, Response response, Response.CompleteListener listener, java.net.URI location, java.lang.String method)
Constructors in org.eclipse.jetty.client with parameters of type Response Constructor Description HttpContentResponse(Response response, byte[] content, java.lang.String mediaType, java.lang.String encoding)
HttpResponseException(java.lang.String message, Response response)
HttpResponseException(java.lang.String message, Response response, java.lang.Throwable cause)
-
Uses of Response in org.eclipse.jetty.client.api
Subinterfaces of Response in org.eclipse.jetty.client.api Modifier and Type Interface Description interface
ContentResponse
A specializedResponse
that can hold a limited content in memory.Fields in org.eclipse.jetty.client.api declared as Response Modifier and Type Field Description private Response
Result. response
Methods in org.eclipse.jetty.client.api that return Response Modifier and Type Method Description Response
Result. getResponse()
Methods in org.eclipse.jetty.client.api with parameters of type Response Modifier and Type Method Description default void
Response.DemandedContentListener. onBeforeContent(Response response, java.util.function.LongConsumer demand)
Callback method invoked before response content events.void
Response.BeginListener. onBegin(Response response)
Callback method invoked when the response line containing HTTP version, HTTP status code and reason has been received and parsed.default void
Response.Listener. onBegin(Response response)
void
Response.AsyncContentListener. onContent(Response response, java.nio.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, java.util.function.LongConsumer demand, java.nio.ByteBuffer content, Callback callback)
void
Response.ContentListener. onContent(Response response, java.nio.ByteBuffer content)
Callback method invoked when the response content has been received, parsed and there is demand.default void
Response.ContentListener. onContent(Response response, java.nio.ByteBuffer content, Callback callback)
void
Response.DemandedContentListener. onContent(Response response, java.util.function.LongConsumer demand, java.nio.ByteBuffer content, Callback callback)
Callback method invoked when the response content has been received.default void
Response.Listener. onContent(Response response, java.nio.ByteBuffer content)
void
Response.FailureListener. onFailure(Response response, java.lang.Throwable failure)
Callback method invoked when the response has failed in the process of being receiveddefault void
Response.Listener. onFailure(Response response, java.lang.Throwable failure)
boolean
Response.HeaderListener. onHeader(Response response, HttpField field)
Callback method invoked when a response header has been received and parsed, returning whether the header should be processed or not.default boolean
Response.Listener. onHeader(Response response, HttpField field)
void
Response.HeadersListener. onHeaders(Response response)
Callback method invoked when all the response headers have been received and parsed.default void
Response.Listener. onHeaders(Response response)
default void
Response.Listener. onSuccess(Response response)
void
Response.SuccessListener. onSuccess(Response response)
Callback method invoked when the whole response has been successfully received.Constructors in org.eclipse.jetty.client.api with parameters of type Response Constructor Description Result(Request request, java.lang.Throwable requestFailure, Response response)
Result(Request request, java.lang.Throwable requestFailure, Response response, java.lang.Throwable responseFailure)
Result(Request request, Response response)
Result(Request request, Response response, java.lang.Throwable responseFailure)
-
Uses of Response in org.eclipse.jetty.client.util
Fields in org.eclipse.jetty.client.util declared as Response Modifier and Type Field Description private Response
InputStreamResponseListener. response
Methods in org.eclipse.jetty.client.util that return Response Modifier and Type Method Description Response
InputStreamResponseListener. get(long timeout, java.util.concurrent.TimeUnit unit)
Waits for the given timeout for the response to be available, then returns it.Methods in org.eclipse.jetty.client.util with parameters of type Response Modifier and Type Method Description void
BufferingResponseListener. onContent(Response response, java.nio.ByteBuffer content)
void
InputStreamResponseListener. onContent(Response response, java.nio.ByteBuffer content, Callback callback)
void
InputStreamResponseListener. onFailure(Response response, java.lang.Throwable failure)
void
BufferingResponseListener. onHeaders(Response response)
void
InputStreamResponseListener. onHeaders(Response response)
void
InputStreamResponseListener. onSuccess(Response response)
-