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
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)
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, 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)
void
ResponseNotifier. forwardFailure(List<Response.ResponseListener> listeners, Response response, Throwable failure)
void
ResponseNotifier. forwardFailureComplete(List<Response.ResponseListener> listeners, Request request, Throwable requestFailure, Response response, Throwable responseFailure)
void
ResponseNotifier. forwardSuccess(List<Response.ResponseListener> listeners, Response response)
void
ResponseNotifier. forwardSuccessComplete(List<Response.ResponseListener> listeners, Request request, Response response)
boolean
HttpRedirector. isRedirect(Response response)
void
ResponseNotifier. notifyBegin(List<Response.ResponseListener> listeners, Response response)
void
ResponseNotifier. notifyContent(List<Response.ResponseListener> listeners, Response response, ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)
void
ResponseNotifier. notifyFailure(List<Response.ResponseListener> listeners, Response response, Throwable failure)
boolean
ResponseNotifier. notifyHeader(List<Response.ResponseListener> listeners, Response response, HttpField field)
void
ResponseNotifier. notifyHeaders(List<Response.ResponseListener> listeners, Response response)
void
ResponseNotifier. notifySuccess(List<Response.ResponseListener> listeners, Response response)
void
ContinueProtocolHandler.ContinueListener. onFailure(Response response, Throwable failure)
boolean
RedirectProtocolHandler. onHeader(Response response, HttpField field)
void
ContinueProtocolHandler.ContinueListener. onSuccess(Response response)
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.Constructors in org.eclipse.jetty.client with parameters of type Response Constructor Description HttpContentResponse(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.api Modifier and Type Interface Description interface
ContentResponse
A specializedResponse
that can hold a limited content in memory.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 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.void
Response.Listener.Adapter. onBegin(Response response)
void
Response.AsyncContentListener. onContent(Response response, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
Callback method invoked asynchronously when the response content has been received.void
Response.ContentListener. onContent(Response response, ByteBuffer content)
Callback method invoked when the response content has been received.void
Response.Listener.Adapter. onContent(Response response, ByteBuffer content)
void
Response.Listener.Adapter. onContent(Response response, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
void
Response.FailureListener. onFailure(Response response, Throwable failure)
Callback method invoked when the response has failed in the process of being receivedvoid
Response.Listener.Adapter. onFailure(Response response, Throwable failure)
boolean
Response.HeaderListener. onHeader(Response response, HttpField field)
Callback method invoked when a response header has been received, returning whether the header should be processed or not.boolean
Response.Listener.Adapter. onHeader(Response response, HttpField field)
void
Response.HeadersListener. onHeaders(Response response)
Callback method invoked when the response headers have been received and parsed.void
Response.Listener.Adapter. onHeaders(Response response)
void
Response.Listener.Adapter. 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, Throwable requestFailure, Response response)
Result(Request request, Throwable requestFailure, Response response, Throwable responseFailure)
Result(Request request, Response response)
Result(Request request, Response response, Throwable responseFailure)
-
Uses of Response in org.eclipse.jetty.client.util
Methods in org.eclipse.jetty.client.util that return Response Modifier and Type Method Description Response
InputStreamResponseListener. get(long timeout, 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, ByteBuffer content)
void
InputStreamResponseListener. onContent(Response response, ByteBuffer content, org.eclipse.jetty.util.Callback callback)
void
InputStreamResponseListener. onFailure(Response response, Throwable failure)
void
BufferingResponseListener. onHeaders(Response response)
void
InputStreamResponseListener. onHeaders(Response response)
void
InputStreamResponseListener. onSuccess(Response response)
-