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 java.lang.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 java.io.InputStream getResponse()
throws java.io.IOException
- Specified by:
getResponse
in interface HttpResponse
- Throws:
java.io.IOException
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface HttpResponse
getHeaders
public java.lang.String[] getHeaders(java.lang.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 java.lang.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-2009 Atlassian Pty Ltd. All Rights Reserved.