Java org.apache.commons.httpclient.methods HeadMethod fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.httpclient.methods HeadMethod fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.httpclient.methods HeadMethod.

The text is from its open source code.

Subclass

org.apache.commons.httpclient.methods.HeadMethod has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidaddRequestHeader(String headerName, String headerValue)
Adds the specified request header, NOT overwriting any previous value.
voidaddRequestHeader(Header header)
Adds the specified request header, NOT overwriting any previous value.
AuthStategetHostAuthState()
Returns the target host AuthState authentication state
StringgetName()
HttpMethodParamsgetParams()
Returns HttpMethodParams HTTP protocol parameters associated with this method.
StringgetPath()
Gets the path of this HTTP method.
HeadergetRequestHeader(String headerName)
Returns the specified request header.
byte[]getResponseBody()
Returns the response body of the HTTP method, if any, as an array of bytes.
InputStreamgetResponseBodyAsStream()
Returns the response body of the HTTP method, if any, as an InputStream .
StringgetResponseBodyAsString()
Returns the response body of the HTTP method, if any, as a String .
StringgetResponseCharSet()
Returns the character encoding of the response from the Content-Type header.
longgetResponseContentLength()
Return the length (in bytes) of the response body, as specified in a Content-Length header.
HeadergetResponseHeader(String headerName)
Gets the response header associated with the given name.
Header[]getResponseHeaders(String headerName)
Header[]getResponseHeaders()
Returns an array of the response headers that the HTTP method currently has in the order in which they were read.
intgetStatusCode()
Returns the response status code.
StatusLinegetStatusLine()
Provides access to the response status line.
StringgetStatusText()
Returns the status text (or "reason phrase") associated with the latest response.
URIgetURI()
Returns the URI of the HTTP method
voidreleaseConnection()
Releases the connection being used by this HTTP method.
voidsetDoAuthentication(boolean doAuthentication)
Sets whether or not the HTTP method should automatically handle HTTP authentication challenges (status code 401, etc.)
voidsetFollowRedirects(boolean followRedirects)
Sets whether or not the HTTP method should automatically follow HTTP redirects (status code 302, etc.)
voidsetPath(String path)
Sets the path of the HTTP method.
voidsetQueryString(String queryString)
Sets the query string of this HTTP method.
voidsetRequestHeader(String headerName, String headerValue)
Set the specified request header, overwriting any previous value.
voidsetURI(URI uri)
Sets the URI for this method.