com.atlassian.confluence.util.http.httpclient
Class HttpClientHttpResponse
java.lang.Object
com.atlassian.confluence.util.http.httpclient.HttpClientHttpResponse
- All Implemented Interfaces:
- HttpResponse
public class HttpClientHttpResponse
- extends Object
- implements HttpResponse
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientHttpResponse
public HttpClientHttpResponse(HttpRequest httpRequest,
org.apache.commons.httpclient.HttpMethod method)
isCached
public boolean isCached()
- Specified by:
isCached in interface HttpResponse
isFailed
public boolean isFailed()
- Specified by:
isFailed in interface HttpResponse
isNotFound
public boolean isNotFound()
- Specified by:
isNotFound in interface HttpResponse
isNotPermitted
public boolean isNotPermitted()
- Specified by:
isNotPermitted in interface HttpResponse
getResponse
public InputStream getResponse()
throws IOException
- Specified by:
getResponse in interface HttpResponse
- Throws:
IOException
getContentType
public String getContentType()
- Specified by:
getContentType in interface HttpResponse
getHeaders
public String[] getHeaders(String name)
- Description copied from interface:
HttpResponse
- Retrieves all HTTP response headers with the specified name and returns an array of their values.
- Specified by:
getHeaders in interface HttpResponse
- Parameters:
name - the HTTP response header to retreive. Must not be null, or an
IllegalArgumentException will be thrown.
- Returns:
- an array of the header values found on the response, or an empty array. Must not return
null.
getStatusMessage
public String getStatusMessage()
- Specified by:
getStatusMessage in interface HttpResponse
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode in interface HttpResponse
finish
public void finish()
- Specified by:
finish in interface HttpResponse
Copyright © 2003-2013 Atlassian. All Rights Reserved.