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 seeHttpRetrievalServicefor 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 voidfinish()Deprecated.StringgetCharset()Deprecated.Returns the charset of the response.StringgetContentType()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.StringgetMIMEType()Deprecated.Returns the MIME type of the response.InputStreamgetResponse()Deprecated.URIgetResponseURI()Deprecated.Returns the URI of the site that the response came from.intgetStatusCode()Deprecated.StringgetStatusMessage()Deprecated.booleanisCached()Deprecated.booleanisFailed()Deprecated.booleanisNotFound()Deprecated.booleanisNotPermitted()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:HttpResponseReturns 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:
getResponseURIin interfaceHttpResponse- Returns:
- the URI of the response
-
isCached
public boolean isCached()
Deprecated.- Specified by:
isCachedin interfaceHttpResponse
-
isFailed
public boolean isFailed()
Deprecated.- Specified by:
isFailedin interfaceHttpResponse
-
isNotFound
public boolean isNotFound()
Deprecated.- Specified by:
isNotFoundin interfaceHttpResponse
-
isNotPermitted
public boolean isNotPermitted()
Deprecated.- Specified by:
isNotPermittedin interfaceHttpResponse
-
getResponse
public InputStream getResponse() throws IOException
Deprecated.- Specified by:
getResponsein interfaceHttpResponse- Throws:
IOException
-
getContentType
public String getContentType()
Deprecated.Description copied from interface:HttpResponseReturns the type of the response content.- Specified by:
getContentTypein 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:HttpResponseReturns the charset of the response.- Specified by:
getCharsetin interfaceHttpResponse- Returns:
- the charset of the response, or null.
-
getMIMEType
public String getMIMEType()
Deprecated.Description copied from interface:HttpResponseReturns the MIME type of the response.- Specified by:
getMIMETypein interfaceHttpResponse- Returns:
- the MIME type of the response.
-
getHeaders
public String[] getHeaders(String name)
Deprecated.Description copied from interface:HttpResponseRetrieves all HTTP response headers with the specified name and returns an array of their values.- Specified by:
getHeadersin interfaceHttpResponse- Parameters:
name- the HTTP response header to retreive. Must not benull, or anIllegalArgumentExceptionwill 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:
getStatusMessagein interfaceHttpResponse
-
getStatusCode
public int getStatusCode()
Deprecated.- Specified by:
getStatusCodein interfaceHttpResponse
-
finish
public void finish()
Deprecated.- Specified by:
finishin interfaceHttpResponse
-
-