|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.http.httpclient.HttpClientHttpResponse
public class HttpClientHttpResponse
| Constructor Summary | |
|---|---|
HttpClientHttpResponse(HttpRequest httpRequest,
org.apache.commons.httpclient.HttpMethod method)
|
|
| Method Summary | |
|---|---|
void |
finish()
|
java.lang.String |
getCharset()
Returns the charset of the response. |
java.lang.String |
getContentType()
Returns the type of the response content. |
java.lang.String[] |
getHeaders(java.lang.String name)
Retrieves all HTTP response headers with the specified name and returns an array of their values. |
java.lang.String |
getMIMEType()
Returns the MIME type of the response. |
java.io.InputStream |
getResponse()
|
java.net.URI |
getResponseURI()
Returns the URI of the site that the response came from. |
int |
getStatusCode()
|
java.lang.String |
getStatusMessage()
|
boolean |
isCached()
|
boolean |
isFailed()
|
boolean |
isNotFound()
|
boolean |
isNotPermitted()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpClientHttpResponse(HttpRequest httpRequest,
org.apache.commons.httpclient.HttpMethod method)
| Method Detail |
|---|
public java.net.URI getResponseURI()
HttpResponse
getResponseURI in interface HttpResponsepublic boolean isCached()
isCached in interface HttpResponsepublic boolean isFailed()
isFailed in interface HttpResponsepublic boolean isNotFound()
isNotFound in interface HttpResponsepublic boolean isNotPermitted()
isNotPermitted in interface HttpResponse
public java.io.InputStream getResponse()
throws java.io.IOException
getResponse in interface HttpResponsejava.io.IOExceptionpublic java.lang.String getContentType()
HttpResponse
getContentType in interface HttpResponseHttpResponse.getCharset(),
HttpResponse.getMIMEType()public java.lang.String getCharset()
HttpResponse
getCharset in interface HttpResponsepublic java.lang.String getMIMEType()
HttpResponse
getMIMEType in interface HttpResponsepublic java.lang.String[] getHeaders(java.lang.String name)
HttpResponse
getHeaders in interface HttpResponsename - the HTTP response header to retreive. Must not be null, or an
IllegalArgumentException will be thrown.
null.public java.lang.String getStatusMessage()
getStatusMessage in interface HttpResponsepublic int getStatusCode()
getStatusCode in interface HttpResponsepublic void finish()
finish in interface HttpResponse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||