|
||||||||||
| 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()
|
String |
getCharset()
Returns the charset of the response. |
String |
getContentType()
Returns the type of the response content. |
String[] |
getHeaders(String name)
Retrieves all HTTP response headers with the specified name and returns an array of their values. |
String |
getMIMEType()
Returns the MIME type of the response. |
InputStream |
getResponse()
|
URI |
getResponseURI()
Returns the URI of the site that the response came from. |
int |
getStatusCode()
|
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 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 InputStream getResponse()
throws IOException
getResponse in interface HttpResponseIOExceptionpublic String getContentType()
HttpResponse
getContentType in interface HttpResponseHttpResponse.getCharset(),
HttpResponse.getMIMEType()public String getCharset()
HttpResponse
getCharset in interface HttpResponsepublic String getMIMEType()
HttpResponse
getMIMEType in interface HttpResponsepublic String[] getHeaders(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 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 | |||||||||