|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.httputil.HttpUtils.HTTPResponseResult
public static class HttpUtils.HTTPResponseResult
Utility class wraps the http requests result and some utility methods for retrieving info and content for the result.
| Field Summary | |
|---|---|
(package private) org.apache.http.HttpEntity |
entity
The httpclient entity. |
(package private) org.apache.http.impl.client.DefaultHttpClient |
httpClient
The httpclient. |
| Constructor Summary | |
|---|---|
HttpUtils.HTTPResponseResult(org.apache.http.HttpEntity entity,
org.apache.http.impl.client.DefaultHttpClient httpClient)
Creates HTTPResponseResult. |
|
| Method Summary | |
|---|---|
InputStream |
getContent()
Returns a content stream of the entity. |
long |
getContentLength()
Tells the length of the content, if known. |
String |
getContentString()
Returns a content string of the entity. |
String[] |
getCredentials()
Get the credentials used by the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
org.apache.http.HttpEntity entity
org.apache.http.impl.client.DefaultHttpClient httpClient
| Constructor Detail |
|---|
HttpUtils.HTTPResponseResult(org.apache.http.HttpEntity entity,
org.apache.http.impl.client.DefaultHttpClient httpClient)
entity - the httpclient entity.httpClient - the httpclient.| Method Detail |
|---|
public long getContentLength()
Long.MAX_VALUE,
a negative number is returned.
public InputStream getContent()
throws IOException,
IllegalStateException
IOException - if the stream could not be created
IllegalStateException - if content stream cannot be created.
public String getContentString()
throws IOException
IOException - if the stream could not be createdpublic String[] getCredentials()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||