Package | Description |
---|---|
org.eclipse.jetty.client |
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
|
org.eclipse.jetty.client.api | |
org.eclipse.jetty.client.util |
Modifier and Type | Class and Description |
---|---|
class |
RedirectProtocolHandler |
Modifier and Type | Method and Description |
---|---|
<T extends Response.ResponseListener> |
HttpResponse.getListeners(Class<T> type) |
<T extends Response.ResponseListener> |
HttpContentResponse.getListeners(Class<T> listenerClass) |
Modifier and Type | Method and Description |
---|---|
List<Response.ResponseListener> |
HttpExchange.getResponseListeners() |
List<Response.ResponseListener> |
HttpConversation.getResponseListeners() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
ResponseNotifier.notifyBegin(List<Response.ResponseListener> listeners,
Response response) |
void |
ResponseNotifier.notifyComplete(List<Response.ResponseListener> listeners,
Result result) |
void |
ResponseNotifier.notifyContent(List<Response.ResponseListener> listeners,
Response response,
ByteBuffer buffer) |
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 |
HttpDestination.send(Request request,
List<Response.ResponseListener> listeners) |
void |
HttpConnection.send(Request request,
List<Response.ResponseListener> listeners) |
protected void |
HttpClient.send(Request request,
List<Response.ResponseListener> listeners) |
void |
HttpConversation.setResponseListeners(List<Response.ResponseListener> listeners) |
Constructor and Description |
---|
HttpExchange(HttpConversation conversation,
HttpConnection connection,
Request request,
List<Response.ResponseListener> listeners) |
HttpResponse(Request request,
List<Response.ResponseListener> listeners) |
Modifier and Type | Interface and Description |
---|---|
static interface |
Response.BeginListener
Listener for the response begin event.
|
static interface |
Response.CompleteListener
Listener for the request and response completed event.
|
static interface |
Response.ContentListener
Listener for the response content events.
|
static interface |
Response.FailureListener
Listener for the response failure event.
|
static interface |
Response.HeaderListener
Listener for a response header event.
|
static interface |
Response.HeadersListener
Listener for the response headers event.
|
static interface |
Response.Listener
Listener for all response events.
|
static interface |
Response.SuccessListener
Listener for the response succeeded event.
|
Modifier and Type | Class and Description |
---|---|
static class |
Response.Listener.Empty
An empty implementation of
Response.Listener |
Modifier and Type | Method and Description |
---|---|
<T extends Response.ResponseListener> |
Response.getListeners(Class<T> listenerClass) |
Modifier and Type | Class and Description |
---|---|
class |
BufferingResponseListener
Implementation of
Response.Listener that buffers the content up to a maximum length
specified to the constructors. |
class |
FutureResponseListener
A
BufferingResponseListener that is also a Future , to allow applications
to block (indefinitely or for a timeout) until FutureResponseListener.onComplete(Result) is called,
or to abort the request/response conversation. |
class |
InputStreamResponseListener
Implementation of
Response.Listener that produces an InputStream
that allows applications to read the response content. |
class |
TimedResponseListener
Implementation of
Response.Listener that allows to specify a timeout for asynchronous
operations. |
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.