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 Response
Response.getRequest()
public int getStatusCode()
getStatusCode
in interface Response
public java.lang.String getStatusText()
getStatusText
in interface Response
public java.lang.String getResource()
getResource
in interface Response
public java.lang.String getHeader(java.lang.String headerName)
public int getByteLength()
getByteLength
in interface Response
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.