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
|
Modifier and Type | Class and Description |
---|---|
protected class |
ContinueProtocolHandler.ContinueListener |
class |
RedirectProtocolHandler |
class |
TimeoutCompleteListener |
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()
Returns the list of response listeners that needs to be notified of response events.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpConversation.updateResponseListeners(Response.ResponseListener overrideListener)
Requests to update the response listener, eventually using the given override response listener,
that must be notified instead of the first exchange response listeners.
|
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) |
protected void |
HttpClient.send(Request request,
List<Response.ResponseListener> listeners) |
void |
HttpDestination.send(Request request,
List<Response.ResponseListener> listeners) |
Constructor and Description |
---|
HttpExchange(HttpConversation conversation,
HttpDestination destination,
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. |
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.