Class HttpClientUnAuthorisedResponse
- java.lang.Object
-
- com.atlassian.confluence.util.http.httpclient.HttpClientUnAuthorisedResponse
-
- All Implemented Interfaces:
HttpResponse
@Deprecated(forRemoval=true) public class HttpClientUnAuthorisedResponse extends Object implements HttpResponse
Deprecated, for removal: This API element is subject to removal in a future version.since 8.6.0 will be removed in 9.0
-
-
Constructor Summary
Constructors Constructor Description HttpClientUnAuthorisedResponse()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidfinish()Deprecated, for removal: This API element is subject to removal in a future version.StringgetCharset()Deprecated, for removal: This API element is subject to removal in a future version.Returns the charset of the response.StringgetContentType()Deprecated, for removal: This API element is subject to removal in a future version.Returns the type of the response content.String[]getHeaders(String name)Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all HTTP response headers with the specified name and returns an array of their values.StringgetMIMEType()Deprecated, for removal: This API element is subject to removal in a future version.Returns the MIME type of the response.InputStreamgetResponse()Deprecated, for removal: This API element is subject to removal in a future version.URIgetResponseURI()Deprecated, for removal: This API element is subject to removal in a future version.Returns the URI of the site that the response came from.intgetStatusCode()Deprecated, for removal: This API element is subject to removal in a future version.StringgetStatusMessage()Deprecated, for removal: This API element is subject to removal in a future version.booleanisCached()Deprecated, for removal: This API element is subject to removal in a future version.booleanisFailed()Deprecated, for removal: This API element is subject to removal in a future version.booleanisNotFound()Deprecated, for removal: This API element is subject to removal in a future version.booleanisNotPermitted()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
isCached
public boolean isCached()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isCachedin interfaceHttpResponse
-
isFailed
public boolean isFailed()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isFailedin interfaceHttpResponse
-
isNotFound
public boolean isNotFound()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isNotFoundin interfaceHttpResponse
-
isNotPermitted
public boolean isNotPermitted()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isNotPermittedin interfaceHttpResponse
-
getResponse
public InputStream getResponse() throws IOException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getResponsein interfaceHttpResponse- Throws:
IOException
-
getResponseURI
public URI getResponseURI()
Deprecated, for removal: This API element is subject to removal in a future version.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
-
getCharset
public String getCharset()
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Description copied from interface:HttpResponseReturns the MIME type of the response.- Specified by:
getMIMETypein interfaceHttpResponse- Returns:
- the MIME type of the response.
-
getContentType
public String getContentType()
Deprecated, for removal: This API element is subject to removal in a future version.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()
-
getHeaders
public String[] getHeaders(String name)
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.- Specified by:
getStatusMessagein interfaceHttpResponse
-
getStatusCode
public int getStatusCode()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getStatusCodein interfaceHttpResponse
-
finish
public void finish()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
finishin interfaceHttpResponse
-
-