public interface Response
Response
represents a HTTP response and offers methods to retrieve status code, HTTP version
and headers.
Response
objects are passed as parameters to Response.Listener
callbacks, or as
future result of Request.send()
.
Response
objects do not contain getters for the response content, because it may be too large
to fit into memory.
The response content should be retrieved via content
events
, or via utility classes such as BufferingResponseListener
.
Modifier and Type | Interface and Description |
---|---|
static interface |
Response.BeginListener |
static interface |
Response.CompleteListener |
static interface |
Response.ContentListener |
static interface |
Response.FailureListener |
static interface |
Response.HeadersListener |
static interface |
Response.Listener
Listener for response events
|
static interface |
Response.ResponseListener |
static interface |
Response.SuccessListener |
Modifier and Type | Method and Description |
---|---|
boolean |
abort(Throwable cause)
Attempts to abort the receive of this response.
|
long |
getConversationID() |
HttpFields |
getHeaders() |
<T extends Response.ResponseListener> |
getListeners(Class<T> listenerClass) |
String |
getReason() |
int |
getStatus() |
HttpVersion |
getVersion() |
long getConversationID()
<T extends Response.ResponseListener> List<T> getListeners(Class<T> listenerClass)
Request#send(CompleteListener)
HttpVersion getVersion()
int getStatus()
String getReason()
getStatus()
HttpFields getHeaders()
boolean abort(Throwable cause)
cause
- the abort cause, must not be nullCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.