|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object base.connection.Response
public class Response
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
headers
|
protected IItem |
item
|
protected java.lang.String |
phrase
|
protected int |
status
|
protected org.apache.http.ProtocolVersion |
version
|
Constructor Summary | |
---|---|
Response(org.apache.http.HttpResponse response)
Constructs the Response from an HttpResponse, which is used by HttpClient. |
Method Summary | |
---|---|
java.lang.String |
getBody()
Returns the content of the response as a String. |
java.io.InputStream |
getBodyStream()
Returns the raw InputStream of the response. |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Returns the headers included in the request's response. |
IItem |
getItem()
Returns the response's content as an Item. |
java.lang.String |
getPhrase()
Indicates the phrase of the response status. |
int |
getStatus()
Indicates the status of the request (e.g. |
org.apache.http.ProtocolVersion |
getVersion()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int status
protected java.lang.String phrase
protected IItem item
protected org.apache.http.ProtocolVersion version
protected java.util.Map<java.lang.String,java.lang.String> headers
Constructor Detail |
---|
public Response(org.apache.http.HttpResponse response)
response
- is the HttpResponse object returned from HttpClient.Method Detail |
---|
public java.lang.String getBody()
IResponse
getBody
in interface IResponse
public java.io.InputStream getBodyStream()
IResponse
getBodyStream
in interface IResponse
public IItem getItem()
IResponse
getItem
in interface IResponse
public org.apache.http.ProtocolVersion getVersion()
public java.lang.String getPhrase()
IResponse
getPhrase
in interface IResponse
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
IResponse
getHeaders
in interface IResponse
public int getStatus()
IResponse
getStatus
in interface IResponse
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |