|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.netheos.pcsapi.request.CResponse
public class CResponse
Represents a response returned by an HTTP client.
| Constructor Summary | |
|---|---|
CResponse(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.HttpResponse response)
|
|
| Method Summary | |
|---|---|
Document |
asDom()
Get the response as a DOM |
org.json.JSONArray |
asJSONArray()
Get the response as a json array |
org.json.JSONObject |
asJSONObject()
Get the response as a json object |
String |
asString()
Extracts string from input stream |
void |
close()
|
long |
getContentLength()
|
String |
getContentType()
|
Headers |
getHeaders()
Get the response headers |
String |
getMethod()
|
String |
getReason()
|
int |
getStatus()
|
URI |
getUri()
|
InputStream |
openStream()
Open a raw stream on the response body. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CResponse(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.HttpResponse response)
| Method Detail |
|---|
public int getStatus()
public String getMethod()
public URI getUri()
public String getContentType()
public String getReason()
public void close()
throws IOException
close in interface CloseableIOExceptionpublic String asString()
public org.json.JSONObject asJSONObject()
public Document asDom()
public org.json.JSONArray asJSONArray()
public long getContentLength()
public Headers getHeaders()
public InputStream openStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||