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 Classes
|
org.eclipse.jetty.client.util |
Jetty Client : Utility Classes
|
org.eclipse.jetty.proxy |
Jetty Proxy : Async Proxy Support
|
Modifier and Type | Class and Description |
---|---|
class |
HttpContentResponse |
class |
HttpResponse |
Modifier and Type | Method and Description |
---|---|
Response |
HttpResponseException.getResponse() |
Modifier and Type | Method and Description |
---|---|
boolean |
WWWAuthenticationProtocolHandler.accept(Request request,
Response response) |
boolean |
RedirectProtocolHandler.accept(Request request,
Response response) |
boolean |
ProxyAuthenticationProtocolHandler.accept(Request request,
Response response) |
boolean |
ProtocolHandler.accept(Request request,
Response response) |
boolean |
ContinueProtocolHandler.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 given
response . |
protected void |
HttpRedirector.fail(Request request,
Response response,
Throwable failure) |
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,
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) |
void |
ContinueProtocolHandler.ContinueListener.onSuccess(Response response) |
Result |
HttpRedirector.redirect(Request request,
Response response)
Redirects the given
response , blocking until the redirect is complete. |
Request |
HttpRedirector.redirect(Request request,
Response response,
Response.CompleteListener listener)
Redirects the given
response asynchronously. |
Constructor and Description |
---|
HttpContentResponse(Response response,
byte[] content,
String mediaType,
String encoding) |
HttpResponseException(String message,
Response response) |
Modifier and Type | Interface and Description |
---|---|
interface |
ContentResponse
A specialized
Response that can hold a limited content in memory. |
Modifier and Type | Method and Description |
---|---|
Response |
Result.getResponse() |
Modifier and Type | Method and 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.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.AsyncContentListener.onContent(Response response,
ByteBuffer content,
Callback callback)
Callback method invoked asynchronously when the response content has been received.
|
void |
Response.Listener.Adapter.onContent(Response response,
ByteBuffer content,
Callback callback) |
void |
Response.FailureListener.onFailure(Response response,
Throwable failure)
Callback method invoked when the response has failed in the process of being received
|
void |
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.SuccessListener.onSuccess(Response response)
Callback method invoked when the whole response has been successfully received.
|
void |
Response.Listener.Adapter.onSuccess(Response response) |
Constructor and Description |
---|
Result(Request request,
Response response) |
Result(Request request,
Response response,
Throwable responseFailure) |
Result(Request request,
Throwable requestFailure,
Response response) |
Result(Request request,
Throwable requestFailure,
Response response,
Throwable responseFailure) |
Modifier and Type | Method and Description |
---|---|
Response |
InputStreamResponseListener.get(long timeout,
TimeUnit unit)
Waits for the given timeout for the response to be available, then returns it.
|
Modifier and Type | Method and Description |
---|---|
void |
InputStreamResponseListener.onContent(Response response,
ByteBuffer content) |
void |
BufferingResponseListener.onContent(Response response,
ByteBuffer content) |
void |
InputStreamResponseListener.onFailure(Response response,
Throwable failure) |
void |
InputStreamResponseListener.onHeaders(Response response) |
void |
BufferingResponseListener.onHeaders(Response response) |
void |
InputStreamResponseListener.onSuccess(Response response) |
Modifier and Type | Method and Description |
---|---|
protected AsyncProxyServlet.StreamWriter |
AsyncProxyServlet.newWriteListener(HttpServletRequest request,
Response proxyResponse) |
void |
ProxyServlet.ProxyResponseListener.onBegin(Response proxyResponse) |
void |
ProxyServlet.ProxyResponseListener.onContent(Response proxyResponse,
ByteBuffer content,
Callback callback) |
void |
ProxyServlet.ProxyResponseListener.onHeaders(Response proxyResponse) |
protected void |
ProxyServlet.onResponseContent(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse,
byte[] buffer,
int offset,
int length,
Callback callback) |
protected void |
AsyncProxyServlet.onResponseContent(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse,
byte[] buffer,
int offset,
int length,
Callback callback) |
protected void |
ProxyServlet.onResponseFailure(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse,
Throwable failure) |
protected void |
ProxyServlet.onResponseHeaders(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse) |
protected void |
ProxyServlet.onResponseSuccess(HttpServletRequest request,
HttpServletResponse response,
Response proxyResponse) |
Constructor and Description |
---|
AsyncProxyServlet.StreamWriter(HttpServletRequest request,
Response proxyResponse) |
Copyright © 1995-2015 Webtide. All Rights Reserved.