Class HttpClientHttpResponse

    • 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 interface HttpResponse
        Returns:
        the URI of the response
      • isCached

        public boolean isCached()
        Deprecated.
        Specified by:
        isCached in interface HttpResponse
      • isFailed

        public boolean isFailed()
        Deprecated.
        Specified by:
        isFailed in interface HttpResponse
      • getCharset

        public String getCharset()
        Deprecated.
        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.
        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.
      • 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 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.
      • finish

        public void finish()
        Deprecated.
        Specified by:
        finish in interface HttpResponse