|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.latka.http.ResponseImpl
public class ResponseImpl
An implementation of a Latka Response interface based on the Apache Commons HttpClient package.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
int |
getByteLength()
Returns the length of the Response stream (as bytes), or -1 if no stream is available |
String |
getHeader(String headerName)
Check a response header. |
Request |
getRequest()
Defined in interface |
String |
getResource()
Returns the resource, in string form, provided by the HTTP server |
int |
getStatusCode()
|
String |
getStatusText()
|
InputStream |
getStream()
Get the actual bytes returned by the web server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RequestImpl _request
protected org.apache.commons.httpclient.HttpMethod _httpMethod
Method Detail |
---|
public Request getRequest()
getRequest
in interface Response
Response.getRequest()
public int getStatusCode()
getStatusCode
in interface Response
public String getStatusText()
getStatusText
in interface Response
public String getResource()
getResource
in interface Response
public String getHeader(String headerName)
getHeader
in interface Response
headerName
- The name of the header to find in the Reponse
public int getByteLength()
getByteLength
in interface Response
public InputStream getStream()
getStream
in interface Response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |