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
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the charset of the response.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the type of the response content.
    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.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the MIME type of the response.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    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.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpClientUnAuthorisedResponse

      public HttpClientUnAuthorisedResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isCached

      public boolean isCached()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isCached in interface HttpResponse
    • isFailed

      public boolean isFailed()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isFailed in interface HttpResponse
    • isNotFound

      public boolean isNotFound()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isNotFound in interface HttpResponse
    • isNotPermitted

      public boolean isNotPermitted()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isNotPermitted in interface HttpResponse
    • getResponse

      public InputStream getResponse() throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getResponse in interface HttpResponse
      Throws:
      IOException
    • getResponseURI

      public URI getResponseURI()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 interface HttpResponse
      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: HttpResponse
      Returns the charset of the response.
      Specified by:
      getCharset in interface HttpResponse
      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: HttpResponse
      Returns the MIME type of the response.
      Specified by:
      getMIMEType in interface HttpResponse
      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: HttpResponse
      Returns the type of the response content.
      Specified by:
      getContentType in interface HttpResponse
      Returns:
      a string containing the MIME type and the charset of the response.
      See Also:
    • getHeaders

      public String[] getHeaders(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getStatusMessage in interface HttpResponse
    • getStatusCode

      public int getStatusCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getStatusCode in interface HttpResponse
    • finish

      public void finish()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      finish in interface HttpResponse