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 Classesorg.eclipse.jetty.proxy Jetty Proxy : Async Proxy Support -
-
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)
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, java.lang.Throwable failure, Response response)
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)
void
ResponseNotifier. forwardFailure(java.util.List<Response.ResponseListener> listeners, Response response, java.lang.Throwable failure)
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)
void
ResponseNotifier. forwardSuccessComplete(java.util.List<Response.ResponseListener> listeners, Request request, Response response)
boolean
HttpRedirector. isRedirect(Response response)
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)
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)
boolean
ResponseNotifier. notifyHeader(java.util.List<Response.ResponseListener> listeners, Response response, HttpField field)
void
ResponseNotifier. notifyHeaders(java.util.List<Response.ResponseListener> listeners, Response response)
void
ResponseNotifier. notifySuccess(java.util.List<Response.ResponseListener> listeners, Response response)
void
ContinueProtocolHandler.ContinueListener. onFailure(Response response, java.lang.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, 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.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
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)
-
Uses of Response in org.eclipse.jetty.proxy
Methods in org.eclipse.jetty.proxy with parameters of type Response Modifier and Type Method Description protected java.lang.String
AbstractProxyServlet. filterServerResponseHeader(javax.servlet.http.HttpServletRequest clientRequest, Response serverResponse, java.lang.String headerName, java.lang.String headerValue)
protected java.lang.String
BalancerServlet. filterServerResponseHeader(javax.servlet.http.HttpServletRequest request, Response serverResponse, java.lang.String headerName, java.lang.String headerValue)
protected AsyncMiddleManServlet.ProxyWriter
AsyncMiddleManServlet. newProxyWriteListener(javax.servlet.http.HttpServletRequest clientRequest, Response proxyResponse)
protected AsyncMiddleManServlet.ContentTransformer
AsyncMiddleManServlet. newServerResponseContentTransformer(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Response serverResponse)
protected AsyncProxyServlet.StreamWriter
AsyncProxyServlet. newWriteListener(javax.servlet.http.HttpServletRequest request, Response proxyResponse)
void
AsyncMiddleManServlet.ProxyResponseListener. onBegin(Response serverResponse)
void
ProxyServlet.ProxyResponseListener. onBegin(Response proxyResponse)
void
AsyncMiddleManServlet.ProxyResponseListener. onContent(Response serverResponse, java.nio.ByteBuffer content, Callback callback)
void
ProxyServlet.ProxyResponseListener. onContent(Response proxyResponse, java.nio.ByteBuffer content, Callback callback)
void
AsyncMiddleManServlet.ProxyResponseListener. onHeaders(Response serverResponse)
void
ProxyServlet.ProxyResponseListener. onHeaders(Response proxyResponse)
protected void
AbstractProxyServlet. onProxyResponseFailure(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Response serverResponse, java.lang.Throwable failure)
protected void
AbstractProxyServlet. onProxyResponseSuccess(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Response serverResponse)
protected void
AsyncProxyServlet. onResponseContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback)
protected void
ProxyServlet. onResponseContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback)
protected void
AbstractProxyServlet. onServerResponseHeaders(javax.servlet.http.HttpServletRequest clientRequest, javax.servlet.http.HttpServletResponse proxyResponse, Response serverResponse)
void
AsyncMiddleManServlet.ProxyResponseListener. onSuccess(Response serverResponse)
Constructors in org.eclipse.jetty.proxy with parameters of type Response Constructor Description ProxyWriter(javax.servlet.http.HttpServletRequest clientRequest, Response serverResponse)
StreamWriter(javax.servlet.http.HttpServletRequest request, Response proxyResponse)
-