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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

HttpMethodBase()
No-arg constructor.
HttpMethodBase(String uri)
Constructor specifying a URI.

Method

voidabort()
Aborts the execution of this method.
voidaddRequestHeader(Header header)
Adds the specified request header, NOT overwriting any previous value.
voidaddRequestHeader(String headerName, String headerValue)
Adds the specified request header, NOT overwriting any previous value.
ClassgetClass()
Returns the runtime class of this Object .
AuthStategetHostAuthState()
Returns the target host AuthState authentication state
HostConfigurationgetHostConfiguration()
Returns the HostConfiguration host configuration .
StringgetName()
Obtains the name of the HTTP method as used in the HTTP request line, for example "GET" or "POST".
HttpMethodParamsgetParams()
Returns HttpMethodParams HTTP protocol parameters associated with this method.
StringgetPath()
Gets the path of this HTTP method.
AuthStategetProxyAuthState()
Returns the proxy AuthState authentication state
StringgetQueryString()
Gets the query string of this HTTP method.
StringgetRequestCharSet()
Returns the character encoding of the request from the Content-Type header.
HeadergetRequestHeader(String headerName)
Returns the specified request header.
Header[]getRequestHeaders()
Returns an array of the requests headers that the HTTP method currently has
byte[]getResponseBody()
Returns the response body of the HTTP method, if any, as an array of bytes.
byte[]getResponseBody(int maxlen)
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 .
StringgetResponseBodyAsString(int maxlen)
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()
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
booleanisAborted()
Tests whether the execution of this method has been aborted
booleanisRequestSent()
Returns true if the HTTP has been transmitted to the target server in its entirety, false otherwise.
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.)
voidsetHostConfiguration(final HostConfiguration hostconfig)
Sets the HostConfiguration host configuration .
voidsetParams(final HttpMethodParams params)
Assigns HttpMethodParams HTTP protocol parameters for this method.
voidsetPath(String path)
Sets the path of the HTTP method.
voidsetQueryString(String queryString)
Sets the query string of this HTTP method.
voidsetQueryString(NameValuePair[] params)
Sets the query string of this HTTP method.
voidsetRequestHeader(String headerName, String headerValue)
Set the specified request header, overwriting any previous value.
voidsetRequestHeader(Header header)
Sets the specified request header, overwriting any previous value.
voidsetURI(URI uri)
Sets the URI for this method.
StringtoString()
Returns a string representation of the object.