public class ResponseImpl extends java.lang.Object implements Response
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.httpclient.HttpMethod |
_httpMethod
the implementation of the http method used to create the response
|
protected RequestImpl |
_request
the request used to get the response
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteLength()
Returns the length of the Response stream (as bytes),
or -1 if no stream is available
|
java.lang.String |
getHeader(java.lang.String headerName)
Check a response header.
|
Request |
getRequest()
Defined in interface
|
java.lang.String |
getResource()
Returns the resource, in string form,
provided by the HTTP server
|
int |
getStatusCode() |
java.lang.String |
getStatusText() |
java.io.InputStream |
getStream()
Get the actual bytes returned by the web server
|
protected RequestImpl _request
protected org.apache.commons.httpclient.HttpMethod _httpMethod
public Request getRequest()
getRequest in interface ResponseResponse.getRequest()public int getStatusCode()
getStatusCode in interface Responsepublic java.lang.String getStatusText()
getStatusText in interface Responsepublic java.lang.String getResource()
getResource in interface Responsepublic java.lang.String getHeader(java.lang.String headerName)
public int getByteLength()
getByteLength in interface ResponseCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.