Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.auth |
Provides implementation of various authentication schemes as well as
utility classes that can be used to authenticate HTTP requests.
|
org.apache.commons.httpclient.cookie |
Provides cookie handling in conjunction with
Cookie . |
org.apache.commons.httpclient.methods |
Classes implementing
HttpMethod for the base HTTP methods. |
Modifier and Type | Class and Description |
---|---|
class |
CircularRedirectException
Signals a circular redirect
|
class |
HttpContentTooLargeException
Signals that the response content was larger than anticipated.
|
class |
HttpRecoverableException
Deprecated.
no longer used
|
class |
InvalidRedirectLocationException
Signals violation of HTTP specification caused by an invalid redirect
location
|
class |
ProtocolException
Signals that an HTTP protocol violation has occurred.
|
class |
RedirectException
Signals violation of HTTP specification caused by an invalid redirect
|
class |
URIException
The URI parsing and escape encoding exception.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpMethodBase.addCookieRequestHeader(HttpState state,
HttpConnection conn)
Generates Cookie request headers for those
cookie s
that match the given host, port and path. |
protected void |
ConnectMethod.addCookieRequestHeader(HttpState state,
HttpConnection conn)
This method does nothing.
|
protected void |
HttpMethodBase.addHostRequestHeader(HttpState state,
HttpConnection conn)
Generates Host request header, as long as no Host request
header already exists.
|
protected void |
HttpMethodBase.addProxyConnectionHeader(HttpState state,
HttpConnection conn)
Generates Proxy-Connection: Keep-Alive request header when
communicating via a proxy server.
|
protected void |
HttpMethodBase.addRequestHeaders(HttpState state,
HttpConnection conn)
Generates all the required request
header s
to be submitted via the given connection . |
protected void |
ConnectMethod.addRequestHeaders(HttpState state,
HttpConnection conn)
Populates the request headers map to with additional
headers to be submitted to the given HttpConnection . |
protected void |
HttpMethodBase.addUserAgentRequestHeader(HttpState state,
HttpConnection conn)
Generates default User-Agent request header, as long as no
User-Agent request header already exists.
|
ProxyClient.ConnectResponse |
ProxyClient.connect()
Creates a socket that is connected, via the HTTP CONNECT method, to a proxy.
|
int |
HttpMethod.execute(HttpState state,
HttpConnection connection)
Executes this method using the specified
HttpConnection and
HttpState . |
int |
HttpMethodBase.execute(HttpState state,
HttpConnection conn)
Executes this method using the specified
HttpConnection and
HttpState . |
int |
ConnectMethod.execute(HttpState state,
HttpConnection conn)
Execute this method and create a tunneled HttpConnection.
|
int |
HttpClient.executeMethod(HostConfiguration hostConfiguration,
HttpMethod method)
Executes the given
HTTP method using custom
host configuration . |
int |
HttpClient.executeMethod(HostConfiguration hostconfig,
HttpMethod method,
HttpState state)
Executes the given
HTTP method using the given custom
host configuration with the given custom
HTTP state . |
int |
HttpClient.executeMethod(HttpMethod method)
Executes the given
HTTP method . |
HttpConnection |
HttpConnectionManager.getConnection(HostConfiguration hostConfiguration,
long timeout)
Deprecated.
Use #getConnectionWithTimeout(HostConfiguration, long)
|
HttpConnection |
MultiThreadedHttpConnectionManager.getConnection(HostConfiguration hostConfiguration,
long timeout)
Deprecated.
Use #getConnectionWithTimeout(HostConfiguration, long)
|
HeaderElement[] |
Header.getValues()
Deprecated.
Use #getElements
|
static HeaderElement[] |
HeaderElement.parse(java.lang.String headerValue)
Deprecated.
Use #parseElements(String).
|
static Header[] |
HttpParser.parseHeaders(java.io.InputStream is)
Deprecated.
use #parseHeaders(InputStream, String)
|
static Header[] |
HttpParser.parseHeaders(java.io.InputStream is,
java.lang.String charset)
Parses headers from the given stream.
|
protected void |
HttpMethodBase.readResponse(HttpState state,
HttpConnection conn)
Reads the response from the given
connection . |
protected void |
HttpMethodBase.readResponseBody(HttpState state,
HttpConnection conn)
Read the response body from the given
HttpConnection . |
protected void |
HttpMethodBase.readResponseHeaders(HttpState state,
HttpConnection conn)
Reads the response headers from the given
connection . |
protected void |
HttpMethodBase.readStatusLine(HttpState state,
HttpConnection conn)
|
protected void |
HttpMethodBase.writeRequest(HttpState state,
HttpConnection conn)
Sends the request via the given
connection . |
protected boolean |
HttpMethodBase.writeRequestBody(HttpState state,
HttpConnection conn)
Writes the request body to the given
connection . |
protected void |
HttpMethodBase.writeRequestHeaders(HttpState state,
HttpConnection conn)
Writes the request headers to the given
connection . |
protected void |
HttpMethodBase.writeRequestLine(HttpState state,
HttpConnection conn)
Writes the request line to the given
connection . |
protected void |
ConnectMethod.writeRequestLine(HttpState state,
HttpConnection conn)
Special Connect request.
|
Constructor and Description |
---|
StatusLine(java.lang.String statusLine)
Default constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthChallengeException
Signals a failure processing authentication challenge
|
class |
AuthenticationException
Signals a failure in authentication process
|
class |
CredentialsNotAvailableException
Authentication credentials required to respond to a authentication
challenge are not available
|
class |
InvalidCredentialsException
Authentication credentials required to respond to a authentication
challenge are invalid
|
class |
MalformedChallengeException
Signals that authentication challenge is in some way invalid or
illegal in the given context
|
Modifier and Type | Class and Description |
---|---|
class |
MalformedCookieException
Signals that a cookie is in some way invalid or illegal in a given
context
|
Modifier and Type | Method and Description |
---|---|
protected void |
EntityEnclosingMethod.addContentLengthRequestHeader(HttpState state,
HttpConnection conn)
Generates Content-Length or Transfer-Encoding: Chunked
request header, as long as no Content-Length request header
already exists.
|
protected void |
MultipartPostMethod.addContentLengthRequestHeader(HttpState state,
HttpConnection conn)
Deprecated.
Adds a Content-Length request header, as long as no
Content-Length request header already exists.
|
protected void |
MultipartPostMethod.addContentTypeRequestHeader(HttpState state,
HttpConnection conn)
Deprecated.
Adds a Content-Type request header.
|
protected void |
EntityEnclosingMethod.addRequestHeaders(HttpState state,
HttpConnection conn)
Populates the request headers map to with additional
headers to be submitted to
the given HttpConnection . |
protected void |
ExpectContinueMethod.addRequestHeaders(HttpState state,
HttpConnection conn)
Sets the Expect header if it has not already been set,
in addition to the "standard" set of headers.
|
protected void |
MultipartPostMethod.addRequestHeaders(HttpState state,
HttpConnection conn)
Deprecated.
Populates the request headers map to with additional
headers to be submitted to
the given HttpConnection . |
protected void |
HeadMethod.readResponseBody(HttpState state,
HttpConnection conn)
Overrides
HttpMethodBase method to not read a response
body, despite the presence of a Content-Length or
Transfer-Encoding header. |
protected boolean |
EntityEnclosingMethod.writeRequestBody(HttpState state,
HttpConnection conn)
Writes the request body to the given
connection . |
protected boolean |
MultipartPostMethod.writeRequestBody(HttpState state,
HttpConnection conn)
Deprecated.
Writes the request body to the given
connection . |
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.