Uses of Interface
org.eclipse.jetty.client.api.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
Jetty Proxy : Async Proxy Support
-
Uses of Response in org.eclipse.jetty.client
Modifier and TypeMethodDescriptionboolean
boolean
Inspects the givenrequest
andresponse
to detect whether this protocol handler should handle them.boolean
boolean
boolean
boolean
protected boolean
UpgradeProtocolHandler.acceptHeaders
(Request request, Response response) 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
protected void
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.notifyBeforeContent
(Response response, ObjLongConsumer<Object> demand, List<Response.DemandedContentListener> contentListeners) void
ResponseNotifier.notifyBegin
(List<Response.ResponseListener> listeners, Response response) 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) 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
boolean
void
Redirects the givenresponse
, blocking until the redirect is complete.HttpRedirector.redirect
(Request request, Response response, Response.CompleteListener listener) Redirects the givenresponse
asynchronously.ModifierConstructorDescriptionHttpContentResponse
(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
Modifier and TypeInterfaceDescriptioninterface
A specializedResponse
that can hold a limited content in memory.Modifier 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.ModifierConstructorDescription -
Uses of Response in org.eclipse.jetty.client.util
Modifier and TypeMethodDescriptionWaits for the given timeout for the response to be available, then returns it.Modifier and TypeMethodDescriptionvoid
BufferingResponseListener.onContent
(Response response, ByteBuffer content) void
InputStreamResponseListener.onContent
(Response response, ByteBuffer content, Callback callback) void
void
void
void
-
Uses of Response in org.eclipse.jetty.proxy
Modifier and TypeMethodDescriptionprotected String
AbstractProxyServlet.filterServerResponseHeader
(jakarta.servlet.http.HttpServletRequest clientRequest, Response serverResponse, String headerName, String headerValue) protected String
BalancerServlet.filterServerResponseHeader
(jakarta.servlet.http.HttpServletRequest request, Response serverResponse, String headerName, String headerValue) protected AsyncMiddleManServlet.ProxyWriter
AsyncMiddleManServlet.newProxyWriteListener
(jakarta.servlet.http.HttpServletRequest clientRequest, Response proxyResponse) protected AsyncMiddleManServlet.ContentTransformer
AsyncMiddleManServlet.newServerResponseContentTransformer
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Response serverResponse) protected AsyncProxyServlet.StreamWriter
AsyncProxyServlet.newWriteListener
(jakarta.servlet.http.HttpServletRequest request, Response proxyResponse) void
void
void
AsyncMiddleManServlet.ProxyResponseListener.onContent
(Response serverResponse, ByteBuffer content, Callback callback) void
ProxyServlet.ProxyResponseListener.onContent
(Response proxyResponse, ByteBuffer content, Callback callback) void
void
protected void
AbstractProxyServlet.onProxyResponseFailure
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Response serverResponse, Throwable failure) protected void
AbstractProxyServlet.onProxyResponseSuccess
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Response serverResponse) protected void
AsyncProxyServlet.onResponseContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) protected void
ProxyServlet.onResponseContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Response proxyResponse, byte[] buffer, int offset, int length, Callback callback) protected void
AbstractProxyServlet.onServerResponseHeaders
(jakarta.servlet.http.HttpServletRequest clientRequest, jakarta.servlet.http.HttpServletResponse proxyResponse, Response serverResponse) void
ModifierConstructorDescriptionprotected
ProxyWriter
(jakarta.servlet.http.HttpServletRequest clientRequest, Response serverResponse) protected
StreamWriter
(jakarta.servlet.http.HttpServletRequest request, Response proxyResponse)