public static interface Request.Listener
Modifier and Type | Interface and Description |
---|---|
static class |
Request.Listener.Empty
An empty implementation of
Request.Listener |
Modifier and Type | Method and Description |
---|---|
void |
onBegin(Request request)
Callback method invoked when the request begins being processed in order to be sent.
|
void |
onFailure(Request request,
Throwable failure)
Callback method invoked when the request has failed to be sent
|
void |
onHeaders(Request request)
Callback method invoked when the request headers (and perhaps small content) have been sent.
|
void |
onQueued(Request request)
Callback method invoked when the request is queued, waiting to be sent
|
void |
onSuccess(Request request)
Callback method invoked when the request has been successfully sent.
|
void onQueued(Request request)
request
- the request being queuedvoid onBegin(Request request)
request
- the request that begins being processedvoid onHeaders(Request request)
request
- the request that has been committedvoid onSuccess(Request request)
request
- the request sentCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.