com.ning.http.client.Response |
![]() |
Represents the asynchronous HTTP response callback for an AsyncCompletionHandler
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Response.ResponseBuilder |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the content-type header value.
| |||||||||||
Return the list of
Cookie . | |||||||||||
Return the response header
| |||||||||||
Return a List of the response header value.
| |||||||||||
Return the entire response body as a String.
| |||||||||||
Return the entire response body as a String.
| |||||||||||
Return the entire response body as a byte[].
| |||||||||||
Returns an input stream for the response body.
| |||||||||||
Returns the first maxLength bytes of the response body as a string.
| |||||||||||
Returns the first maxLength bytes of the response body as a string.
| |||||||||||
Returns the status code for the request.
| |||||||||||
Returns the status text for the request.
| |||||||||||
Return the request URI.
| |||||||||||
Return true if the response's body has been computed by an
AsyncHandler . | |||||||||||
Return true if the response's headers has been computed by an
AsyncHandler It will return false if the
either onStatusReceived(HttpResponseStatus)
or onHeadersReceived(HttpResponseHeaders) returned ABORT | |||||||||||
Return true if the response's status has been computed by an
AsyncHandler | |||||||||||
Return true if the response redirects to another object.
| |||||||||||
Subclasses SHOULD implement toString() in a way that identifies the request for logging.
|
Return the content-type header value.
Return the response header
Return a List of the response header value.
Return the entire response body as a String.
IOException |
---|
Return the entire response body as a String.
charset | the charset to use when decoding the stream |
---|
IOException |
---|
Return the entire response body as a byte[].
IOException |
---|
Returns an input stream for the response body. Note that you should not try to get this more than once, and that you should not close the stream.
IOException |
---|
Returns the first maxLength bytes of the response body as a string. Note that this does not check whether the content type is actually a textual one, but it will use the charset if present in the content type header.
maxLength | The maximum number of bytes to read |
---|
IOException |
---|
Returns the first maxLength bytes of the response body as a string. Note that this does not check whether the content type is actually a textual one, but it will use the charset if present in the content type header.
maxLength | The maximum number of bytes to read |
---|---|
charset | the charset to use when decoding the stream |
IOException |
---|
Returns the status code for the request.
Returns the status text for the request.
Return the request URI. Note that if the request got redirected, the value of the URI will be the last valid redirect url.
MalformedURLException |
---|
Return true if the response's body has been computed by an AsyncHandler
. It will return false if the
either onStatusReceived(HttpResponseStatus)
or onHeadersReceived(HttpResponseHeaders)
returned ABORT
AsyncHandler
Return true if the response's headers has been computed by an AsyncHandler
It will return false if the
either onStatusReceived(HttpResponseStatus)
or onHeadersReceived(HttpResponseHeaders)
returned ABORT
AsyncHandler
Return true if the response's status has been computed by an AsyncHandler
AsyncHandler
Return true if the response redirects to another object.
Subclasses SHOULD implement toString() in a way that identifies the request for logging.