Aborts the execution of the HTTP method.
Aborts the execution of this method.
abs_path - static field in class org.apache.commons.httpclient.
URI URI absolute path.
Registers the given connection with this handler.
Adds a connection manager to be handled by this class.
Generates Content-Length or Transfer-Encoding: Chunked
request header, as long as no Content-Length request header
already exists.
Adds a Content-Length request header, as long as no
Content-Length request header already exists.
Adds a Content-Type request header.
Adds an
HTTP cookie
, replacing any existing equivalent cookies.
This method does nothing.
Generates
Cookie request headers for those
cookie
s
that match the given host, port and path.
Adds the given header to the group.
Generates Host request header, as long as no Host request
header already exists.
Adds a new parameter to be used in the POST request body.
Adds a new parameter to be used in the POST request body.
Adds a binary file part with the given file name
Adds an array of parameters to be used in the POST request body.
Generates Proxy-Connection: Keep-Alive request header when
communicating via a proxy server.
Adds the specified request header, not overwriting any previous value.
Adds the specified request header, NOT overwriting any previous value.
Adds the specified request header, not overwriting any previous value.
Adds the specified request header, NOT overwriting any previous value.
Populates the request headers map to with additional
headers
to be submitted to the given
HttpConnection
.
Populates the request headers map to with additional
headers
to be submitted to
the given
HttpConnection
.
Sets the Expect header if it has not already been set,
in addition to the "standard" set of headers.
Generates all the required request
header
s
to be submitted via the given
connection
.
Populates the request headers map to with additional
headers
to be submitted to
the given
HttpConnection
.
Add a footer to this method's response.
Use this method internally to add footers.
Generates default User-Agent request header, as long as no
User-Agent request header already exists.
Defines whether circular redirects (redirects to the same location) should be allowed.
Those characters that are allowed for the abs_path.
Those characters that are allowed for the authority component.
Those characters that are allowed for the fragment component.
Those characters that are allowed for the host component.
Those characters that are allowed for the IPv6reference component.
Those characters that are allowed for the opaque_part.
Those characters that are allowed for the query component.
Those characters that are allowed for the reg_name.
Those characters that are allowed for the rel_path.
Those characters that are allowed for the userinfo component.
Those characters that are allowed for the authority component.
Those characters that are allowed within the path.
Those characters that are allowed within the query component.
Those characters that are allowed for within the userinfo component.
alpha - static field in class org.apache.commons.httpclient.
URI BitSet for alpha.
alphanum - static field in class org.apache.commons.httpclient.
URI BitSet for alphanum (join of alpha & digit).
ANY - static field in class org.apache.commons.httpclient.auth.
AuthScope Default scope matching any host, port, realm and authentication scheme.
The null value represents any host.
A value to represent any host configuration, instead of using something like
null
.
The -1 value represents any port.
The null value represents any realm.
The null value represents any authentication scheme.
Throws an IllegalStateException
if the connection is already open.
Throws an IllegalStateException
if the connection is not open.
Signals a failure processing authentication challenge
Creates a new AuthChallengeException with a null detail message.
Creates a new AuthChallengeException with the specified message.
Creates a new AuthChallengeException with the specified detail message and cause.
This class provides utility methods for parsing HTTP www and proxy authentication
challenges.
This class provides utility methods for processing HTTP www and proxy authentication
challenges.
Creates an authentication challenge processor with the given
HTTP
parameters
Attempt to provide requisite authentication credentials to the
given method in the given context using the given
authentication scheme.
Produces an authorization string for the given set of
Credentials
.
Produces basic authorization string for the given set of
Credentials
.
Produces a digest authorization string for the given set of
Credentials
, method name and URI.
Produces NTLM authorization string for the given set of
Credentials
.
Produces basic authorization string for the given set of
Credentials
.
Produces a digest authorization string for the given set of
Credentials
, method name and URI.
Produces NTLM authorization string for the given set of
Credentials
.
Create a NTLM authorization string for the given
challenge and NT credentials.
Create a NTLM authorization string for the given
challenge and NT credentials.
Attempt to provide default authentication credentials
to the given method in the given context using basic
authentication scheme.
Attempt to provide requisite proxy authentication credentials
to the given method in the given context using
the given authentication scheme.
Attempt to provide default proxy authentication credentials
to the given method in the given context using basic
authentication scheme.
Signals a failure in authentication process
Creates a new AuthenticationException with a null detail message.
Creates a new AuthenticationException with the specified message.
Creates a new AuthenticationException with the specified detail message and cause.
authority - static field in class org.apache.commons.httpclient.
URI BitSet for authority.
Authentication policy class.
This interface represents an abstract challenge-response oriented
authentication scheme.
Abstract authentication scheme class that implements
AuthScheme
interface and provides a default contstructor.
Constructor for an abstract authetication schemes.
The class represents an authentication scope consisting of a host name,
a port number, a realm name and an authentication scheme name which
Credentials
apply to.
Creates a copy of the given credentials scope.
Creates a new credentials scope for the given
host, port, any realm name, and any
authentication scheme.
Creates a new credentials scope for the given
host, port, realm, and any
authentication scheme.
Creates a new credentials scope for the given
host, port, realm, and
authentication scheme.
This class provides detailed information about the state of the
authentication process.
CHARSET - static field in class org.apache.commons.httpclient.methods.multipart.
Part Content charset
CHARSET_BYTES - static field in class org.apache.commons.httpclient.methods.multipart.
Part Content charset as a byte array
Throws an
IllegalStateException
if the HTTP method has been already
executed
, but not
recycled
.
Throws an
IllegalStateException
if the HTTP method has not been
executed
since last
recycle
.
Verify the valid class use for construction.
Verify the valid class use for construction.
Transparently coalesces chunks of a HTTP stream that uses
Transfer-Encoding chunked.
ChunkedInputStream constructor
ChunkedInputStream constructor that associates the chunked input stream with a
HTTP method
.
Implements HTTP chunking support.
Wraps a stream and chunks the output.
Wraps a stream and chunks the output.
Signals a circular redirect
Creates a new CircularRedirectException with a null detail message.
Creates a new CircularRedirectException with the specified detail message.
Creates a new CircularRedirectException with the specified detail message and cause.
Removes all parameters from this collection.
Removes any contained headers.
Clears the state information (all cookies, credentials and proxy credentials).
Clears all proxy credentials.
Clones this collection of parameters.
clone() - method in class org.apache.commons.httpclient.
URI Create and return a copy of this object, the URI-reference containing
the userinfo component.
Upon close, this reads the remainder of the chunked message,
leaving the underlying socket at a position to start reading the
next response without scanning.
Finishes writing to the underlying stream, but does NOT close the underlying stream.
Reads until the end of the known length of content.
Closes the socket and streams.
Closes connections that have been idle for at least the given amount of time.
Closes connections that have been idle for at least the given amount of time.
Closes the connection if stale.
The basic and internal utility for URI escape and character encoding and
decoding.
Compares two cookies to determine order for cookie header.
Compare this URI to another object.
Compares this HTTP protocol version with another one.
The COMPATIBILITY policy provides high compatibilty
with common cookie management of popular HTTP agents.
Not available: the data must have already been retrieved.
Creates a socket that is connected, via the HTTP CONNECT method, to a proxy.
Determines the timeout until a connection is etablished.
A timeout while connecting waiting for an available connection
from an HttpConnectionManager.
Creates a ConnectTimeoutException with a null detail message.
Creates a ConnectTimeoutException with the specified detail message.
Creates a new ConnectTimeoutException with the specified detail message and cause.
Establishes a tunneled HTTP connection via the CONNECT method.
Contains the method used to execute the connect along with the created socket.
A timeout while connecting to an HTTP server or waiting for an
available connection from an HttpConnectionManager.
Creates a ConnectTimeoutException with a null detail message.
Creates a ConnectTimeoutException with the specified detail message.
Creates a new ConnectTimeoutException with the specified detail message and cause.
Tests if headers with the given name are contained within this group.
Content dispostion characters
Content dispostion as a byte array
The content length will be calculated automatically.
The content length will be calculated automatically.
The request will use chunked transfer encoding.
Content type header as a byte array
CONTENT_TYPE - static field in class org.apache.commons.httpclient.methods.multipart.
Part Content type header
Content type header as a byte array
Cuts the wrapped InputStream off after a specified number of bytes.
Creates a new length limited stream
control - static field in class org.apache.commons.httpclient.
URI BitSet for control.
This helper class is intedned to help work around the limitation of older Java versions
(older than 1.4) that prevents from specifying a connection timeout when creating a
socket.
HTTP "magic-cookie" represents a piece of state information
that the HTTP agent and the target server can exchange to maintain
a session.
Creates a cookie with the given name, value and domain attribute.
Creates a cookie with the given name, value, domain attribute,
path attribute, expiration attribute, and secure attribute
Creates a cookie with the given name, value, domain attribute,
path attribute, maximum age attribute, and secure attribute
Cookie management policy class.
Defines the cookie management specification.
Cookie management functions shared by all specification.
Creates a random cnonce value based on the current time.
Return a new FileInputStream
for the current filename.
Gets a new InputStream for reading this source.
This method spawns a controller thread overseeing the process of socket
initialisation.
Returns a socket connected to the given host that is layered over an
existing socket.
Gets a new socket connection to the given host.
Gets a new socket connection to the given host.
Attempts to get a new socket connection to the given host within the given time limit.
Gets a new socket connection to the given host.
Attempts to get a new socket connection to the given host within the given time limit.
This method attempts to execute Socket method available since Java 1.4
using reflection.
Defines the charset to be used when encoding
Credentials
.
Authentication credentials.
Authentication credentials required to respond to a authentication
challenge are not available
Creates a new CredentialsNotAvailableException with a null detail message.
Creates a new CredentialsNotAvailableException with the specified message.
Creates a new CredentialsNotAvailableException with the specified detail message and cause.
Credentials provider interface can be used to provide
HTTP method
with a means to request
authentication credentials if no credentials have been given or given
credentials are incorrect.
CRLF - static field in class org.apache.commons.httpclient.methods.multipart.
Part Carriage return/linefeed
CRLF_BYTES - static field in class org.apache.commons.httpclient.methods.multipart.
Part Carriage return/linefeed as a byte array
Generates the request body.
Generates a request entity from the post parameters, if present.
Generates HTTP request line according to the specified attributes.
Get the level above the this hierarchy level.
Gets all of the headers contained within this group.
Get a list of allowed methods.
Converts the specified string to byte array of ASCII characters.
Converts the specified string to byte array of ASCII characters.
Converts the byte array of ASCII characters to a string.
Converts the byte array of ASCII characters to a string.
Converts the byte array of ASCII characters to a string.
Converts the byte array of ASCII characters to a string.
Returns authentication realm, if it has been used during authentication process.
Returns non-compliant response body check timeout.
Returns a Boolean
parameter value with the given name.
getBoundary() - static method in class org.apache.commons.httpclient.methods.multipart.
Part Return the boundary string.
Converts the specified string to a byte array of HTTP element characters.
Converts the specified string to a byte array.
Return the Throwable that caused this exception, or null
if the cause is unavailable, unknown, or not a Throwable.
getCharSet() - method in class org.apache.commons.httpclient.methods.multipart.
Part Return the character encoding of this part.
Return the character encoding of this part.
Get the preferred charset for the given locale.
Returns the comment describing the purpose of this cookie, or
null if no such comment has been defined.
Gets a header representing all of the header values with the given name.
Gets an HttpConnection for a given host configuration.
Gets an HttpConnection for a given host configuration.
Gets the total number of pooled connections.
Gets the total number of pooled connections for the given host configuration.
Gets the total number of connections in use.
Gets the number of connections in use for this configuration.
Returns the timeout until a connection is etablished.
Gets an HttpConnection for a given host configuration.
Gets the method that was used to execute the connect.
Converts the specified string to a byte array of HTTP content characters
using default HTTP content encoding (ISO-8859-1) This method is to be
used when encoding content of HTTP request/response
Converts the specified string to a byte array of HTTP content charachetrs
This method is to be used when encoding content of HTTP request/response
If the specified charset is not supported, default HTTP content encoding
(ISO-8859-1) is applied
Returns the default charset to be used for writing content body,
when no charset explicitly specified.
Returns the character set from the Content-Type header.
Gets the request entity's length.
Gets the request entity's length.
Converts the byte array of HTTP content characters to a string using
default HTTP content encoding (ISO-8859-1) This method is to be used when
decoding content of HTTP request/response
Converts the byte array of HTTP content characters to a string using
default HTTP content encoding (ISO-8859-1) This method is to be used when
decoding content of HTTP request/response
Converts the byte array of HTTP content characters to a string This
method is to be used when decoding content of HTTP request/response If
the specified charset is not supported, default HTTP content encoding
(ISO-8859-1) is applied
Converts the byte array of HTTP content characters to a string This
method is to be used when decoding content of HTTP request/response If
the specified charset is not supported, default HTTP content encoding
(ISO-8859-1) is applied
Gets the entity's content type.
Gets the entity's content type.
Returns the content type of this part.
Returns the content type of this part.
Gets the entity's content type.
Gets the entity's content type.
Returns an array of
cookies
that this HTTP
state currently contains.
Returns an array of
cookies
in this HTTP
state that match the given request parameters.
Get the
credentials
for the given authentication scope.
Get the
credentials
for the given authentication scope on the
given host.
Get the current hierarchy level.
Get the recommended default charset of the document.
Get the default charset of the document by locale.
Get the default charset of the document by platform.
Gets the default maximum number of connections allowed for a given
host config.
Gets the default HttpParams to be used.
Gets the default parameters.
Gets the default parameters.
Get the default charset of the protocol.
Returns the parent collection that this collection will defer to
for a default value if a particular parameter is not explicitly
set in the collection itself
Not available: the data must have already been retrieved.
Returns true if the HTTP method should automatically handle HTTP
authentication challenges (status code 401, etc.), false otherwise
Returns true if the HTTP method should automatically handle HTTP
authentication challenges (status code 401, etc.), false otherwise
Returns domain attribute of the cookie.
Retrieves the name to authenticate with.
Returns a Double
parameter value with the given name.
Returns the HTTP version used with this method (may be null
if undefined, that is, the method has not been executed)
Get the level above the this hierarchy level.
Get the escaped authority.
Get the escaped current hierarchy level.
Get the escaped fragment.
Get the escaped basename of the path.
Get the escaped password.
It can be gotten the URI character sequence.
Get the escaped URI reference string.
Get the escaped userinfo.
Returns the expiration Date
of the cookie, or null
if none exists.
Return the current filename
Gets the name of the file this source represents.
Gets the first header with the given name.
Entity enclosing requests cannot be redirected without user intervention
according to RFC 2616.
Returns true if the HTTP method should automatically follow HTTP redirects
(status code 302, etc.), false otherwise.
Returns true if the HTTP method should automatically follow HTTP redirects
(status code 302, etc.), false otherwise.
Get the path of an URI and its rest part.
Return the header field at the specified position
Return the header field key
Gets all of the headers with the given name.
Returns the default host.
Retrieves the host name of the computer originating the request.
getHost() - method in class org.apache.commons.httpclient.
URI Get the host.
Gets the host configuration for this method.
Returns the host name (IP or DNS name).
Returns the httpConnectionManager.
Returns the charset to be used for writing HTTP headers.
Returns a String identifying the authentication challenge.
Gets an ID based upon the realm and the nonce value.
Returns a String identifying the authentication challenge.
Returns a String identifying the authentication challenge.
Gets an input stream for the HttpMethod response body.
Returns an Integer
parameter value with the given name.
Returns an iterator over this group of headers.
Gets the last header with the given name.
Returns the stream used to read the last response's body.
Return the length of the file
Gets the number of bytes contained in this source.
Return the total sum of all parts and that of the last boundary
Gets the length of the multipart message including the given parts.
Returns linger-on-close timeout.
Return the local address to be used when creating connections.
Return the local address used when creating the connection.
Returns a Long
parameter value with the given name.
Returns the major version number of the HTTP protocol.
Gets the maximum number of connections allowed for a given
hostConfiguration.
Gets the maximum number of connections to be used for a particular host config.
Gets the maximum number of connections allowed.
Gets the maximum number of connections allowed for this connection manager.
Implements the HTTP GET method.
Constructor specifying a URI.
Returns the minor version number of the HTTP protocol.
Returns the MIME boundary string that is used to demarcate boundaries of
this part.
Provide the
name
of this method.
Obtains the name of the HTTP method as used in the HTTP request line,
for example "GET" or "POST".
Obtains the name of the HTTP method as used in the HTTP request line,
for example "GET" or "POST".
getName() - method in class org.apache.commons.httpclient.methods.multipart.
Part Return the name of this part.
getName() - method in class org.apache.commons.httpclient.
URI Get the basename of the path.
Get the basename of an URI.
Returns authentication parameter with the given name, if available.
Returns a parameter value with the given name.
Returns the authentication parameter with the given name, if available.
Gets the parameter of the specified name.
Returns authentication parameter with the given name, if available.
Returns parameter with the given name, if found.
Gets the parameters currently added to the PostMethod.
Returns authentication parameters map.
Returns
parameters
associated
with this connection manager.
Returns
parameters
associated
with this connection manager.
Returns
parameters
associated
with this connection manager.
Gets the part boundary to be used.
Password property getter.
Returns the path attribute of the cookie
Returns the path of the HTTP method.
Gets the path of this HTTP method.
getPath() - method in class org.apache.commons.httpclient.
URI Get the path.
Get the path and query of an URI.
Returns the default port.
Returns the port of the host.
getPort() - method in class org.apache.commons.httpclient.
URI Get the port.
Returns the protocol used to establish the connection.
Gets the protocol with the given ID.
Get the protocol charset used by this current URI instance.
Returns proxy authentication realm, if it has been used during authentication process.
Get the
credentials
for the proxy host with the given
authentication scope.
Returns the port of the proxy host.
Returns the query string of this HTTP method.
Gets the query string of this HTTP method.
Get the level above the this hierarchy level.
Get the level above the this hierarchy level.
Get the raw-escaped authority.
Get the raw-escaped current hierarchy level.
Get the raw-escaped current hierarchy level.
Get the raw-escaped current hierarchy level in the given path.
Get the raw-escaped fragment.
Get the raw-escaped basename of the path.
Get the raw-escaped password.
Get the raw escaped path.
Get the raw-escaped path.
Get the raw-escaped path and query.
Get the raw-escaped query.
It can be gotten the URI character sequence.
Get the URI reference character sequence.
Get the raw-escaped user.
Get the raw-escaped userinfo.
Returns authentication realm.
Returns the authentication realm.
The concept of an authentication realm is not supported by the NTLM
authentication scheme.
Returns authentication realm.
Get the text description of the reason for an exception.
Get the status code description of the reason for an exception.
Returns a hint the size of the underlying buffers used by the platform
for incoming network I/O.
Returns the request's charset.
Returns the character encoding of the request from the Content-Type header.
Returns the length of the request body.
Return the length of the request body.
Gets the request header with the given name.
Returns the specified request header.
Returns the current request headers for this HTTP method.
Returns an array of the requests headers that the HTTP method currently has
Returns the request headers with the given name.
Return the request method.
Returns an OutputStream
suitable for writing the request.
Returns the response body of the HTTP method, if any, as an array of bytes.
Returns the response body of the HTTP method, if any, as an array of bytes.
Returns the response body of the HTTP method, if any, as an InputStream.
Returns the response body of the HTTP method, if any, as an InputStream
.
Returns the response body of the HTTP method, if any, as a String
.
Returns the response body of the HTTP method, if any, as a String
.
Returns the character encoding of the response from the Content-Type header.
Return the response code.
Return the length (in bytes) of the response body, as specified in a
Content-Length header.
Return the specified response footer.
Gets the response footer associated with the given name.
Returns the response footers from the most recent execution of this request.
Returns an array of the response footers that the HTTP method currently has
in the order in which they were read.
Returns the specified response header.
Gets the response header associated with the given name.
Returns the response headers from the most recent execution of this request.
Returns an array of the response headers that the HTTP method currently has
in the order in which they were read.
Returns the response headers with the given name.
Return a InputStream
suitable for reading the response.
Return the response message
Returns a stream from which the body of the current response may be read.
Gets the
header group
storing the response trailer headers
as per RFC 2616 section 3.6.1.
Returns textual designation of the given authentication scheme.
Returns textual designation of the basic authentication scheme.
Returns textual designation of the digest authentication scheme.
Returns textual designation of the NTLM authentication scheme.
Gets the socket's sendBufferSize.
Returns a hint the size of the underlying buffers used by the platform for
outgoing network I/O.
Returns the connection socket.
Gets the socket connected and authenticated (if appropriate) to the configured
HTTP proxy, or null
if a connection could not be made.
Returns the socketFactory.
Returns the Socket
's timeout, via Socket.getSoTimeout
, if the
connection is already open.
Returns the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Returns the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Returns the source of the file part.
Gets the CookieSpec for a particular cookie version.
Returns
HTTP state
associated with the HttpClient.
Returns
HTTP state
associated with the ProxyClient.
Returns the status code associated with the latest response.
Returns the response status code.
Returns the Status-Line from the most recent response for this method,
or null
if the method has not been executed.
Provides access to the response status line.
Returns the status text (or "reason phrase") associated with the latest
response.
Returns the status text (or "reason phrase") associated with the latest
response.
Get the reason phrase for a particular status code.
Converts the byte array of HTTP element characters to a string This
method is to be used when decoding content of HTTP elements (such as
response headers)
Converts the byte array of HTTP element characters to a string This
method is to be used when decoding content of HTTP elements (such as
response headers)
Converts the byte array of HTTP content characters to a string.
Converts the byte array of HTTP content characters to a string.
Tests if Nagle's algorithm is to be used.
Return the transfer encoding of this part.
Returns the transfer encoding of this part.
Returns the URI for this method.
Returns the URI of the HTTP method
getURI() - method in class org.apache.commons.httpclient.
URI It can be gotten the URI character sequence.
Get the original URI reference string.
Returns true if the 'Expect: 100-Continue' handshake
is activated.
User name property getter.
Returns the Collection
of date patterns used for parsing.
Return the current value.
Returns the version of the cookie specification to which this
cookie conforms.
Returns the virtual host.
Returns the virtual host name.
Returns the target virtual host.
Returns the virtual host name.
Test if the HTTP protocol version is greater or equal to the given number.
Tell whether or not this URI has authority.
Tell whether or not this URI has fragment.
hash - field in class org.apache.commons.httpclient.
URI Cache the hash code for this URI.
Returns a hash code in keeping with the
Object.hashCode
general hashCode contract.
All instances of DefaultProtocolSocketFactory have the same hash code.
Computes a hash code based on all the case-sensitive parts of the credentials object.
Return a hash code for this object
All instances of SSLProtocolSocketFactory have the same hash code.
Return a hash code for this URI.
Does a hash of both user name and password.
Tell whether or not this URI has query.
Returns true if there is a request body to be sent.
Returns true if there is a request body to be sent.
Returns true if there is a request body to be sent.
Tell whether or not this URI has userinfo.
Sets period of time in milliseconds to wait for a content body sent in response to
HEAD method
from a
non-compliant server.
Constructor with name and value
Constructor with name and value
One element of an HTTP header's value.
Constructor with array of characters.
Constructor with array of characters.
Constructor with name, value and parameters.
A class for combining a set of headers.
Constructor for HeaderGroup.
Implements the HTTP HEAD method.
Constructor specifying a URI.
hex - static field in class org.apache.commons.httpclient.
URI BitSet for hex.
hier_part - static field in class org.apache.commons.httpclient.
URI BitSet for hier_part.
host - static field in class org.apache.commons.httpclient.
URI BitSet for host.
Holds all of the variables needed to describe an HTTP connection to a host.
Constructor for HostConfiguration.
Copy constructor for HostConfiguration
Tests if the host configuration equals the configuration set on the
connection.
hostname - static field in class org.apache.commons.httpclient.
URI BitSet for hostname.
Creates a new collection of parameters with the collection returned
by
getDefaultParams()
as a parent.
Creates a new collection of parameters with the given parent.
hostport - static field in class org.apache.commons.httpclient.
URI BitSet for hostport.
HTTP protocol version 0.9
HTTP protocol version 1.0
HTTP protocol version 1.1
Defines the charset to be used for encoding content body.
Character set used to encode HTTP protocol elements
Defines the charset to be used for encoding HTTP protocol elements.
Utility methods for HTTP authorization and authentication.
The key used to look up authentication credentials.
Creates a new HttpAuthRealm for the given domain and
realm.
Signals that an error has occurred.
Creates a new HttpClientError with a null detail message.
Creates a new HttpClientError with the specified detail message.
Creates a new collection of parameters with the collection returned
by
getDefaultParams()
as a parent.
Creates a new collection of parameters with the given parent.
An abstraction of an HTTP InputStream
and OutputStream
pair, together with the relevant attributes.
Creates a new HTTP connection for the given host configuration.
Creates a new HTTP connection for the given host and port.
Creates a new HTTP connection for the given host and port
using the given protocol.
Creates a new HTTP connection for the given host and port via the
given proxy host and port using the default protocol.
Creates a new HTTP connection for the given host with the virtual
alias and port via the given proxy host and port using the given
protocol.
Creates a new HTTP connection for the given host with the virtual
alias and port via the given proxy host and port using the given
protocol.
Creates a new HTTP connection for the given host with the virtual
alias and port using given protocol.
An interface for classes that manage HttpConnections.
This class represents a collection of HTTP protocol parameters applicable to
HTTP connections
.
Creates a new collection of parameters with the collection returned
by
getDefaultParams()
as a parent.
HTTP content conversion routines.
Signals that an HTTP or HttpClient exception has occurred.
Creates a new HttpException with a null detail message.
Creates a new HttpException with the specified detail message.
Creates a new HttpException with the specified detail message and cause.
Holds all of the variables needed to describe an HTTP connection to a host.
Copy constructor for HttpHost
URI constructor for HttpHost.
Constructor for HttpHost.
Constructor for HttpHost.
Constructor for HttpHost.
HttpMethod interface represents a request to be sent via a
HTTP connection
and a corresponding response.
An abstract base implementation of HttpMethod.
Constructor specifying a URI.
This class represents a collection of HTTP protocol parameters applicable to
HTTP methods
.
Creates a new collection of parameters with the collection returned
by
getDefaultParams()
as a parent.
Creates a new collection of parameters with the given parent.
A handler for determining if an HttpMethod should be retried after a
recoverable exception during execution.
This interface represents a collection of HTTP protocol parameters.
A factory for getting the default set of parameters to use when creating an instance of
HttpParams
.
A utility class for parsing http header values according to
RFC-2616 Section 4 and 19.3.
Signals that an HTTP or HttpClient exception has occurred.
Creates a new HttpRecoverableException with a null detail message.
Creates a new HttpRecoverableException with the specified detail message.
A container for HTTP attributes that may persist from request
to request, such as
cookies
and authentication
credentials
.
Constants enumerating the HTTP status codes.
Create an instance as an internal use.
Construct a HTTPS URL as an escaped form of a character array.
Construct a HTTPS URL as an escaped form of a character array with the
given charset to do escape encoding.
Construct a HTTPS URL with a given relative URL.
Construct a HTTPS URL with a given relative HTTPS URL string.
Construct a HTTPS URL from a given string.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from a given string with the given charset to do
escape encoding.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTP URL from given components.
Construct a HTTPS URL from given components.
Construct a HTTPS URL from given components.
Create an instance as an internal use.
Construct a HTTP URL as an escaped form of a character array.
Construct a HTTP URL as an escaped form of a character array with the
given charset to do escape encoding.
Construct a HTTP URL with a given relative URL.
Construct a HTTP URL with a given relative URL string.
Construct a HTTP URL from a given string.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from a given string with the given charset to do
escape encoding.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Construct a HTTP URL from given components.
Provides a HttpURLConnection
wrapper around HttpClient's
HttpMethod
.
Creates an HttpURLConnection
from a HttpMethod
.
HTTP version, as specified in RFC 2616.
Create an HTTP protocol version designator.
A helper class for connection managers to track idle connections.
A utility class for periodically closing idle connections.
The policy that ignores cookies.
A cookie spec that does nothing.
Get the earlier index that to be searched for the first occurrance in
one of any of the given array.
Get the earlier index that to be searched for the first occurrance in
one of any of the given array.
Get the earlier index that to be searched for the first occurrance in
one of any of the given string.
Get the earlier index that to be searched for the first occurrance in
one of any of the given string.
If we're running on JDK 1.4 or later, initialize the cause for the given throwable.
A RequestEntity that contains an InputStream.
Creates a new InputStreamRequestEntity with the given content and a content type of
CONTENT_LENGTH_AUTO
.
Creates a new InputStreamRequestEntity with the given content and content length.
Creates a new InputStreamRequestEntity with the given content, content length, and
content type.
Creates a new InputStreamRequestEntity with the given content, content type, and a
content length of
CONTENT_LENGTH_AUTO
.
Invalidates the authentication state by resetting its parameters.
Authentication credentials required to respond to a authentication
challenge are invalid
Creates a new InvalidCredentialsException with a null detail message.
Creates a new InvalidCredentialsException with the specified message.
Creates a new InvalidCredentialsException with the specified detail message and cause.
Bitset that combines digit and dot fo IPv$address.
Tests whether the execution of this method has been aborted
Tell whether or not this URI is absolute.
Tell whether or not the relativeURI or hier_part of this URI is abs_path.
Is the specified method allowed ?
Determines whether all parameter values must be enclosed in quotation
marks, even if they do not contain any special characters
Tests whether authenication challenge has been responsed to
Returns true if authentication should be attempted preemptively,
false otherwise.
Returns true if preemptive authentication should be
attempted, false otherwise.
Tests whether authenication challenge has been received
Returns the value of the auto-generated header flag.
Authentication process may involve a series of challenge-response exchanges.
Tests if the Basic authentication process has been completed.
Tests if the Digest authentication process has been completed.
Tests if the NTLM authentication process has been completed.
Tests if the authentication scheme is provides authorization on a per
connection basis instead of usual per request basis
Tests if the connection should be force-closed when no longer needed.
Gets the staleCheckingEnabled value to be set on HttpConnections that are created.
Gets the staleCheckingEnabled value to be set on HttpConnections that are created.
Returns true if cookie's domain was set via a domain
attribute in the Set-Cookie header.
Returns true if this cookie has expired.
Returns true if this cookie has expired according to the time passed in.
Tell whether or not the absoluteURI of this URI is hier_part.
Tell whether or not the host part of this URI is hostname.
Returns true if the host is set.
Returns true if version 1.1 of the HTTP protocol should be
used per default, false if version 1.0 should be used.
Tell whether or not the host part of this URI is IPv4address.
Tell whether or not the host part of this URI is IPv6reference.
Tests if the connection is locked.
Tell whether or not the relativeURI or heir_part of this URI is net_path.
Tell whether or not the absoluteURI of this URI is opaque_part.
Whether or not the connection is connected.
Tests if the connection is open.
Returns true if the parameter is either not set or is false,
false otherwise.
Returns true if the parameter is set at any level, false otherwise.
Returns true if the parameter is set locally, false otherwise.
Returns true if the parameter is set and is true, false
otherwise.
Returns true if cookie's path was set via a path attribute
in the Set-Cookie header.
Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
Tests if preemptive authentication is used.
Returns true if the connection is established via a proxy,
false otherwise.
Tests if the proxy host/port have been set.
Tell whether or not the authority component of this URI is reg_name.
Tell whether or not this URI is relative.
Tell whether or not the relativeURI of this URI is rel_path.
Tests if this method is repeatable.
Returns true
if all parts are repeatable, false
otherwise.
Tests if this part can be sent more than once.
Returns true if the HTTP has been transmitted to the target
server in its entirety, false otherwise.
Returns true if the HTTP has been transmitted to the target
server in its entirety, false otherwise.
Tests if input data avaialble.
Tests if input data becomes available within the given period time in milliseconds.
Returns true if the connection is established over
a secure protocol.
Returns true if this protocol is secure
Tell whether or not the authority component of this URI is server.
If SocketTimeoutExceptionClass is defined, returns true only if the
exception is an instance of SocketTimeoutExceptionClass.
Determines whether this connection is "stale", which is to say that either
it is no longer open, or an attempt to read the connection would fail.
Tests if stale checking is enabled.
Tests whether stale connection check is to be used.
Returns the value of the strict mode flag.
Returns the value of the strict mode flag.
Indicates if the connection is completely transparent from end to end.
param - static field in class org.apache.commons.httpclient.
URI BitSet for param (alias for pchar).
This formatter produces a textual representation of attribute/value pairs.
Default ParameterFormatter constructor
A simple parser intended to parse sequences of name/value pairs.
Default ParameterParser constructor
Extracts a list of
NameValuePair
s from the given array of
characters.
Extracts a list of
NameValuePair
s from the given array of
characters.
This parses the value part of a header.
Parses the textual representation of the given HTTP protocol version.
Parse the "Set-Cookie" Header into an array of Cookies.
Returns an empty
cookie
array.
Parse the "Set-Cookie" header value into Cookie array.
Parses the Set-Cookie value into an array of Cookies.
Returns an empty
cookie
array.
Parses the Set-Cookie value into an array of Cookies.
Parse the cookie attribute and update the corresponsing Cookie
properties.
Parse the cookie attribute and update the corresponsing
Cookie
properties.
Parse the cookie attribute and update the corresponsing
Cookie
properties as defined by the Netscape draft specification
Parse RFC 2109 specific cookie attribute and update the corresponsing
Cookie
properties.
Parse the authority component.
Extracts a map of challenges ordered by authentication scheme name
Parses the date value using the given date formats.
Parses the date value using the given date formats.
Parses the date value using the given date formats.
This parses the value part of a header.
This parses the value part of a header.
Parses headers from the given stream.
Parses headers from the given stream.
In order to avoid any possilbity of conflict with non-ASCII characters,
Parse a URI reference as a String
with the character
encoding of the local system or the document.
Part - class org.apache.commons.httpclient.methods.multipart.
Part Abstract class for one Part of a multipart post object.
Provides setters and getters for the basic Part properties.
The MIME parts as set by the constructor
An interface for providing access to data when posting MultiPart messages.
path - static field in class org.apache.commons.httpclient.
URI URI bitset that combines absolute path and opaque part.
Path delimiting charachter
BitSet for path segments.
Performs path-match as defined by the cookie specification.
Performs path-match as implemented in common browsers.
Date format pattern used to parse HTTP date headers in ANSI C
asctime()
format.
Date format pattern used to parse HTTP date headers in ANSI C
asctime()
format.
Date format pattern used to parse HTTP date headers in RFC 1036 format.
Date format pattern used to parse HTTP date headers in RFC 1036 format.
Date format pattern used to parse HTTP date headers in RFC 1123 format.
Date format pattern used to parse HTTP date headers in RFC 1123 format.
pchar - static field in class org.apache.commons.httpclient.
URI BitSet for pchar.
percent - static field in class org.apache.commons.httpclient.
URI The percent "%" character always has the reserved purpose of being the
escape indicator, it must be escaped as "%25" in order to be used as
data within a URI.
port - static field in class org.apache.commons.httpclient.
URI Port, a logical alias for digit.
Implements the HTTP POST method.
Constructor specifying a URI.
Defines whether authentication should be attempted preemptively.
The boolean system property name to turn on preemptive authentication.
Pre-validate the unescaped URI string within a specific component.
Writes the specified String (as bytes) to the output stream.
Writes "\r\n".getBytes() to the output stream.
Writes the specified String (as bytes), followed by
"\r\n".getBytes() to the output stream.
Print this HttpException and its stack trace to the standard error stream.
Print this HttpException and its stack trace to the specified print stream.
Print this HttpException and its stack trace to the specified print writer.
Processes the given collection of challenges and updates the
state
of the authentication process.
Processes the given challenge token.
Processes the Basic challenge.
Processes the Digest challenge.
Processes the NTLM challenge.
Processes the given challenge token.
This implementation will parse the Allow header to obtain
the set of methods supported by the resource identified by the Request-URI.
A class to encapsulate the specifics of a protocol.
Constructs a new Protocol.
Constructs a new Protocol.
Protocol charset changed.
The charset of the protocol used by this URI instance.
Signals that an HTTP protocol violation has occurred.
Creates a new ProtocolException with a null detail message.
Creates a new ProtocolException with the specified detail message.
Creates a new ProtocolException with the specified detail message and cause.
A factory for creating Sockets.
Sets the credentials provider parameter.
The proxy authenticate challange header.
The proxy authenticate response header.
A client that provides sockets
for communicating through HTTP proxies
via the HTTP CONNECT method.
Creates an instance of ProxyClient using the given
parameter set
.
Tests if the proxy configuration equals the configuration set on the
connection.
Holds all of the variables needed to describe an HTTP connection to a proxy.
Copy constructor for HttpHost
Constructor for HttpHost.
Constructor for ProxyHost.
The DNS punycode encoding or decoding error.
Removes all of
cookies
in this HTTP state
that have expired according to the current system time.
Removes all of
cookies
in this HTTP state
that have expired by the specified
date
.
Implements the HTTP PUT method.
Constructor specifying a URI.
Returns all the data in a chunked stream in coalesced form.
Read the next byte from the stream
Read some bytes from the stream.
Read more bytes from the stream.
Read some bytes from the stream.
Does standard InputStream.read(byte[], int, int)
behavior, but
also notifies the watcher when the contents have been consumed.
Reads up to "\n" from the (unchunked) input stream.
Read up to "\n" from an (unchunked) input stream.
Read up to "\n" from an (unchunked) input stream.
Reads up to "\n" from the (unchunked) input stream.
Return byte array from an (unchunked) input stream.
Overrides
HttpMethodBase
method to
not read a response
body, despite the presence of a
Content-Length or
Transfer-Encoding header.
Reads the response headers from the given
connection
.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Recycles the HTTP method so that it can be used again.
Signals violation of HTTP specification caused by an invalid redirect
Creates a new RedirectException with a null detail message.
Creates a new RedirectException with the specified detail message.
Creates a new RedirectException with the specified detail message and cause.
This helper class uses refelction in order to execute Socket methods
available in Java 1.4 and above
reg_name - static field in class org.apache.commons.httpclient.
URI BitSet for reg_name.
Registers a new protocol with the given identifier.
Defines whether the content body sent in response to
HeadMethod
should be rejected.
Defines whether relative redirects should be rejected.
rel_path - static field in class org.apache.commons.httpclient.
URI BitSet for rel_path.
Releases the connection being used by this HTTP method.
Releases the connection being used by this HTTP method.
Releases the given HttpConnection for use by other requests.
Make the given HttpConnection available for use by other requests.
Removes the given connection from the list of connections to be closed when idle.
Removes all connections referenced by this handler.
Removes the connection manager from this class.
Remove the fragment identifier of the given component.
Removes the given header.
Removes all parameters with the given paramName.
Removes all parameter with the given paramName and paramValue.
Removes the given request header.
Removes the given request header.
Removes all request headers with the given name.
Remove the request header associated with the given name.
Replace from a given character to given character for a given string.
Replace from a given character to given character in an array order
for a given string.
reserved - static field in class org.apache.commons.httpclient.
URI BitSet for reserved.
Resolve the base and relative path.
Resolves the correct port for this protocol.
A response has been consumed.
Sets the method retry handler parameter.
Used retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
Determines if a method should be retried after an HttpRecoverableException
occurs during execution.
Used retryCount
and requestSentRetryEnabled
to determine
if the given method should be retried.
Determines if a method should be retried after an HttpRecoverableException
occurs during execution.
The RFC2109 RFC 2109 compliant policy.
RFC 2109 specific cookie management functions
Abstract authentication scheme class that lays foundation for all
RFC 2617 compliant authetication schemes and provides capabilities common
to all authentication schemes defined in RFC 2617.
Default constructor for RFC2617 compliant authetication schemes.
Default constructor for RFC2617 compliant authetication schemes.
The RFC 2109 compliant policy.
rootPath - static field in class org.apache.commons.httpclient.
URI The root path.
Execute the logic in this object and keep track of any exceptions.
202 Accepted (HTTP/1.0 - RFC 1945)
502 Bad Gateway (HTTP/1.0 - RFC 1945)
400 Bad Request (HTTP/1.1 - RFC 2616)
409 Conflict (HTTP/1.1 - RFC 2616)
100 Continue (HTTP/1.1 - RFC 2616)
201 Created (HTTP/1.0 - RFC 1945)
417 Expectation Failed (HTTP/1.1 - RFC 2616)
424 Failed Dependency (WebDAV - RFC 2518)
403 Forbidden (HTTP/1.0 - RFC 1945)
504 Gateway Timeout (HTTP/1.1 - RFC 2616)
410 Gone (HTTP/1.1 - RFC 2616)
505 HTTP Version Not Supported (HTTP/1.1 - RFC 2616)
Static constant for a 419 error.
507 Insufficient Storage (WebDAV - RFC 2518)
500 Server Error (HTTP/1.0 - RFC 1945)
411 Length Required (HTTP/1.1 - RFC 2616)
423 Locked (WebDAV - RFC 2518)
Static constant for a 420 error.
405 Method Not Allowed (HTTP/1.1 - RFC 2616)
301 Moved Permanently (HTTP/1.0 - RFC 1945)
302 Moved Temporarily (Sometimes Found) (HTTP/1.0 - RFC 1945)
207 Multi-Status (WebDAV - RFC 2518) or 207 Partial Update
OK (HTTP/1.1 - draft-ietf-http-v11-spec-rev-01?)
300 Mutliple Choices (HTTP/1.1 - RFC 2616)
204 No Content (HTTP/1.0 - RFC 1945)
203 Non Authoritative Information (HTTP/1.1 - RFC 2616)
406 Not Acceptable (HTTP/1.1 - RFC 2616)
404 Not Found (HTTP/1.0 - RFC 1945)
501 Not Implemented (HTTP/1.0 - RFC 1945)
304 Not Modified (HTTP/1.0 - RFC 1945)
200 OK (HTTP/1.0 - RFC 1945)
206 Partial Content (HTTP/1.1 - RFC 2616)
402 Payment Required (HTTP/1.1 - RFC 2616)
412 Precondition Failed (HTTP/1.1 - RFC 2616)
102 Processing (WebDAV - RFC 2518)
407 Proxy Authentication Required (HTTP/1.1 - RFC 2616)
408 Request Timeout (HTTP/1.1 - RFC 2616)
413 Request Entity Too Large (HTTP/1.1 - RFC 2616)
414 Request-URI Too Long (HTTP/1.1 - RFC 2616)
416 Requested Range Not Satisfiable (HTTP/1.1 - RFC 2616)
205 Reset Content (HTTP/1.1 - RFC 2616)
303 See Other (HTTP/1.1 - RFC 2616)
503 Service Unavailable (HTTP/1.0 - RFC 1945)
101 Switching Protocols (HTTP/1.1 - RFC 2616)
307 Temporary Redirect (HTTP/1.1 - RFC 2616)
401 Unauthorized (HTTP/1.0 - RFC 1945)
422 Unprocessable Entity (WebDAV - RFC 2518)
415 Unsupported Media Type (HTTP/1.1 - RFC 2616)
305 Use Proxy (HTTP/1.1 - RFC 2616)
scheme - static field in class org.apache.commons.httpclient.
URI BitSet for scheme.
A ProtocolSocketFactory that is secure.
segment - static field in class org.apache.commons.httpclient.
URI BitSet for segment.
Determines the preferred
authentication scheme
that can be used
to respond to the given collection of challenges.
Chooses the strongest authentication scheme supported from the
array of authentication challenges.
Write all the data to the output stream.
Write the content type header to the specified output stream
Write the data in "source" to the specified stream.
Write the data to the specified output stream
Writes the data to the given OutputStream.
Write the disposition header to the output stream
Write the content disposition header to the specified output stream
Write the end data to the output stream.
Write the end of the header to the output stream
Write all parts and the last boundary to the specified output stream.
Write all parts and the last boundary to the specified output stream.
Write the start to the specified output stream
Write the content transfer encoding header to the specified
output stream
server - static field in class org.apache.commons.httpclient.
URI Bitset for server.
Not available: the data must have already been retrieved.
Defines whether all parameter values must be enclosed in quotation
marks, even if they do not contain any special characters
Sets authentication attempt status
Sets whether authentication should be attempted preemptively.
Defines whether preemptive authentication should be
attempted.
Sets authentication request status
Sets non-compliant response body check timeout.
Assigns a Boolean
to the parameter with the given name
Sets the character encoding.
Sets the character encoding.
If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described using this comment.
Sets whether or not the connection should be force-closed when no longer
needed.
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
Sets the staleCheckingEnabled value to be set on HttpConnections that are created.
Sets the timeout until a connection is etablished.
Sets the connection timeout.
Sets the timeout until a connection is etablished.
Sets the timeout value to use when testing for idle connections.
Sets the default charset to be used for writing content body,
when no charset explicitly specified.
Sets whether or not the content should be chunked.
Sets the charset to be used for writing HTTP headers.
Sets the
credentials
for the given authentication
scope.
Sets the
credentials
for the given authentication
realm on the given host.
Set the default charset of the document.
Sets the default maximum number of connections allowed for a given
host config.
Set the default charset of the protocol.
Assigns the parent collection that this collection will defer to
for a default value if a particular parameter is not explicitly
set in the collection itself
Not available: the data must have already been retrieved.
Sets whether or not the HTTP method should automatically handle HTTP
authentication challenges (status code 401, etc.)
Sets whether or not the HTTP method should automatically handle HTTP
authentication challenges (status code 401, etc.)
Not available: the data must have already been retrieved.
Sets the domain attribute.
Sets the domain to authenticate with.
Indicates whether the cookie had a domain specified in a
domain attribute of the Set-Cookie header.
Not available: the data must have already been retrieved.
Assigns a Double
to the parameter with the given name
Set the escaped fragment string.
Set the escaped password string.
Set the escaped query string.
Set the escaped user string.
Set the raw-escaped user and password.
Entity enclosing requests cannot be redirected without user intervention
according to RFC 2616.
Sets whether or not the HTTP method should automatically follow HTTP redirects
(status code 302, etc.)
Sets whether or not the HTTP method should automatically follow HTTP redirects
(status code 302, etc.)
Sets all of the headers contained within this group overriding any
existing headers.
Sets the protocol, host and port from the given URI.
Sets the host to connect to.
Sets the host name of the computer originating the request.
Sets the given host and port.
Sets the given host, port and protocol.
Sets the given host, port and protocol
Sets the given host, virtual host, port and protocol.
Sets whether version 1.1 of the HTTP protocol should be used per default.
Sets the httpConnectionManager.
Sets the charset to be used for writing HTTP headers.
Sets the factory that will provide the default HttpParams.
Not available: the data must have already been retrieved.
Not available: the data must have already been retrieved.
Assigns an Integer
to the parameter with the given name
Set the state to keep track of the last response for the last request.
Returns linger-on-close timeout.
Set the local address to be used when creating connections.
Set the local address used when creating the connection.
Locks or unlocks the connection.
Assigns a Long
to the parameter with the given name
Sets the maximum number of connections allowed for a given
HostConfiguration.
Sets the maximum number of connections to be used for the given host config.
Sets the maximum number of connections allowed.
Sets the maximum number of connections allowed for this connection manager.
Assigns the value to the parameter with the given name
Sets the value of parameter with parameterName to parameterValue.
Assigns the value to all the parameter with the given names
Password property setter.
Sets the path of the HTTP method.
Sets the path of the HTTP method.
Indicates whether the cookie had a path specified in a
path attribute of the Set-Cookie header.
Sets the port to connect to.
Preemptively assigns Basic authentication scheme.
Sets the protocol used to establish the connection
Sets the
credentials
for the given proxy authentication
realm on the given proxy host.
Sets the given proxy host
Sets the host to proxy through.
Sets the port of the host to proxy through.
Set the query as the name and value pair.
Set the query as the name and value pairs.
Sets the query string of this HTTP method.
Sets the query string of this HTTP method.
Sets the query string of the HTTP method.
Sets the query string of this HTTP method.
Set the raw-escaped fragment.
Set the raw-escaped password.
Set the raw-escaped path.
Set the raw-escaped query.
Set the raw-escaped user.
Set the raw-escaped user and password.
Sets the text description of the reason for an exception.
Sets the status code description of the reason for an exception.
Sets a hint the size of the underlying buffers used by the platform
for incoming network I/O.
Sets the request body to be the specified inputstream.
Sets an array of parameters to be used in the POST request body
Sets the request body to be the specified string.
Sets length information about the request body.
Sets length information about the request body.
Sets the specified request header, overwriting any
previous value.
Sets the specified request header, overwriting any previous value.
Sets the specified request header, overwriting any
previous value.
Set the specified request header, overwriting any previous value.
Not available: the data must have already been retrieved.
Not available: the data must have already been retrieved.
Sets the response stream.
Sets the secure attribute of the cookie.
Sets the socket's sendBufferSize.
Sets a hint the size of the underlying buffers used by the platform for
outgoing network I/O.
Sets SO_TIMEOUT
value directly on the underlying socket
.
Set the Socket
's timeout, via Socket.setSoTimeout
.
Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Sets the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Sets whether or not isStale() will be called when testing if this connection is open.
Defines whether stale connection check is to be used.
Defines how strictly the method follows the HTTP protocol specification
(see RFC 2616 and other relevant RFCs).
Defines how strictly the method follows the HTTP protocol specification.
Defines how strictly HttpClient follows the HTTP protocol specification
(RFC 2616 and other relevant RFCs).
Determines whether Nagle's algorithm is to be used.
Sets the socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Sets the interval used by this class between closing idle connections.
Sets the transfer encoding.
setURI() - method in class org.apache.commons.httpclient.
URI Once it's parsed successfully, set this URI.
Sets the URI for this method.
Sets the URI for this method.
Not available: the data must have already been retrieved.
Activates 'Expect: 100-Continue' handshake.
Set the user and password.
User name property setter.
Sets the Collection
of date patterns used for parsing.
Sets the version of the cookie specification to which this
cookie conforms.
Sets the virtual host name.
Sets the virtual host to target.
Sets the virtual host name.
Returns true
if the status code is anything other than
SC_OK, false
otherwise.
Tests if the connection should be closed after the method has been executed.
Stops the thread used to close idle connections.
Shuts down the connection manager and releases all resources.
Shuts down and cleans up resources used by all instances of
MultiThreadedHttpConnectionManager.
Attempts to shutdown the Socket
's output, via Socket.shutdownOutput()
when running on JVM 1.3 or higher.
A connection manager that provides access to a single HttpConnection.
Skips and discards a number of bytes from the input stream.
Sets SO_LINGER with the specified linger time in seconds.
Determines a hint the size of the underlying buffers used by the platform
for incoming network I/O.
Determines a hint the size of the underlying buffers used by the platform
for outgoing network I/O.
Defines the default socket timeout (SO_TIMEOUT) in milliseconds which is the
timeout for waiting for data.
Sets the socket timeout (SO_TIMEOUT) in milliseconds to be used when executing the method.
Helper class for wrapping socket based tasks.
space - static field in class org.apache.commons.httpclient.
URI BitSet for space.
A SecureProtocolSocketFactory that uses JSSE to create sockets.
Constructor for SSLProtocolSocketFactory.
Determines whether stale connection check is to be used.
Tests if the string starts with 'HTTP' signature.
Defines the maximum number of ignorable lines before we expect
a HTTP response's status code.
Represents a Status-Line as returned from a HTTP server.
Defines whether responses with an invalid Transfer-Encoding header should be
rejected.
Simple string parameter for a multipart post
A RequestEntity that contains a String.
Creates a new entity with the given content.
Creates a new entity with the given content, content type, and charset.