Class HttpClientHttpResponse
- java.lang.Object
-
- com.atlassian.confluence.util.http.httpclient.HttpClientHttpResponse
-
- All Implemented Interfaces:
HttpResponse
@Deprecated public class HttpClientHttpResponse extends Object implements HttpResponse
Deprecated.since 7.0.1 seeHttpRetrievalService
for details
-
-
Constructor Summary
Constructors Constructor Description HttpClientHttpResponse(HttpRequest httpRequest, org.apache.commons.httpclient.HttpMethod method)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
finish()
Deprecated.String
getCharset()
Deprecated.Returns the charset of the response.String
getContentType()
Deprecated.Returns the type of the response content.String[]
getHeaders(String name)
Deprecated.Retrieves all HTTP response headers with the specified name and returns an array of their values.String
getMIMEType()
Deprecated.Returns the MIME type of the response.InputStream
getResponse()
Deprecated.URI
getResponseURI()
Deprecated.Returns the URI of the site that the response came from.int
getStatusCode()
Deprecated.String
getStatusMessage()
Deprecated.boolean
isCached()
Deprecated.boolean
isFailed()
Deprecated.boolean
isNotFound()
Deprecated.boolean
isNotPermitted()
Deprecated.
-
-
-
Constructor Detail
-
HttpClientHttpResponse
public HttpClientHttpResponse(HttpRequest httpRequest, org.apache.commons.httpclient.HttpMethod method)
Deprecated.
-
-
Method Detail
-
getResponseURI
public URI getResponseURI()
Deprecated.Description copied from interface:HttpResponse
Returns the URI of the site that the response came from. The URI will be absolute if the host configuration has been set and relative otherwise.- Specified by:
getResponseURI
in interfaceHttpResponse
- Returns:
- the URI of the response
-
isCached
public boolean isCached()
Deprecated.- Specified by:
isCached
in interfaceHttpResponse
-
isFailed
public boolean isFailed()
Deprecated.- Specified by:
isFailed
in interfaceHttpResponse
-
isNotFound
public boolean isNotFound()
Deprecated.- Specified by:
isNotFound
in interfaceHttpResponse
-
isNotPermitted
public boolean isNotPermitted()
Deprecated.- Specified by:
isNotPermitted
in interfaceHttpResponse
-
getResponse
public InputStream getResponse() throws IOException
Deprecated.- Specified by:
getResponse
in interfaceHttpResponse
- Throws:
IOException
-
getContentType
public String getContentType()
Deprecated.Description copied from interface:HttpResponse
Returns the type of the response content.- Specified by:
getContentType
in interfaceHttpResponse
- Returns:
- a string containing the MIME type and the charset of the response.
- See Also:
HttpResponse.getCharset()
,HttpResponse.getMIMEType()
-
getCharset
public String getCharset()
Deprecated.Description copied from interface:HttpResponse
Returns the charset of the response.- Specified by:
getCharset
in interfaceHttpResponse
- Returns:
- the charset of the response, or null.
-
getMIMEType
public String getMIMEType()
Deprecated.Description copied from interface:HttpResponse
Returns the MIME type of the response.- Specified by:
getMIMEType
in interfaceHttpResponse
- Returns:
- the MIME type of the response.
-
getHeaders
public String[] getHeaders(String name)
Deprecated.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 interfaceHttpResponse
- Parameters:
name
- the HTTP response header to retreive. Must not benull
, or anIllegalArgumentException
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()
Deprecated.- Specified by:
getStatusMessage
in interfaceHttpResponse
-
getStatusCode
public int getStatusCode()
Deprecated.- Specified by:
getStatusCode
in interfaceHttpResponse
-
finish
public void finish()
Deprecated.- Specified by:
finish
in interfaceHttpResponse
-
-