|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 HttpResponse
public boolean isCached()
isCached
in interface HttpResponse
public boolean isFailed()
isFailed
in interface HttpResponse
public boolean isNotFound()
isNotFound
in interface HttpResponse
public boolean isNotPermitted()
isNotPermitted
in interface HttpResponse
public java.io.InputStream getResponse() throws java.io.IOException
getResponse
in interface HttpResponse
java.io.IOException
public java.lang.String getContentType()
HttpResponse
getContentType
in interface HttpResponse
HttpResponse.getCharset()
,
HttpResponse.getMIMEType()
public java.lang.String getCharset()
HttpResponse
getCharset
in interface HttpResponse
public java.lang.String getMIMEType()
HttpResponse
getMIMEType
in interface HttpResponse
public java.lang.String[] getHeaders(java.lang.String name)
HttpResponse
getHeaders
in interface HttpResponse
name
- 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 HttpResponse
public int getStatusCode()
getStatusCode
in interface HttpResponse
public void finish()
finish
in interface HttpResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |