Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Package org.apache.commons.httpclient.util

Classes and interfaces supporting the client side of the HTTP protocol.

See:
          Description

Class Summary
Base64 Deprecated. The commons-codec Base64 class will be used in HttpClient 2.1
DateParser Deprecated. Use DateUtil
DateUtil A utility class for parsing and formatting HTTP dates as used in cookies and other headers.
EncodingUtil The home for utility methods that handle various encoding tasks.
ExceptionUtil The home for utility methods that handle various exception-related tasks.
HttpURLConnection Provides a HttpURLConnection wrapper around HttpClient's HttpMethod.
IdleConnectionHandler A helper class for connection managers to track idle connections.
IdleConnectionTimeoutThread A utility class for periodically closing idle connections.
LangUtils A set of utility methods to help produce consistent Object#equals(Object) and Object#hashCode methods.
ParameterFormatter This formatter produces a textual representation of attribute/value pairs.
ParameterParser A simple parser intended to parse sequences of name/value pairs.
TimeoutController Executes a task with a specified timeout.
URIUtil The URI escape and character encoding and decoding utility.
URIUtil.Coder Deprecated. use org.apache.commons.codec.net.URLCodec
 

Exception Summary
DateParseException An exception to indicate an error parsing a date string.
TimeoutController.TimeoutException Signals that the task timed out.
 

Package org.apache.commons.httpclient.util Description

Classes and interfaces supporting the client side of the HTTP protocol.

The HttpClient component supports the client-side of RFC 1945 (HTTP/1.0) and RFC 2616 (HTTP/1.1), several related specifications (RFC 2109 (Cookies), RFC 2617 (HTTP Authentication), etc.), and provides a framework by which new request types (methods) or HTTP extensions can can be easily created or supported.

The basis for the abstraction is provided by three types:

and several simple bean-style classes:

org.apache.commons.httpclient.HttpClient provides a simple "user-agent" implementation that will suffice for many applications, but whose use is not required.

HttpClient also provides several utilities that may be useful when extending the framework:

HttpClient Configuration with Java Properties

Java properties can be set at run time with the -Dname=value command line arguments to the application that uses HttpClient. These properties can also be set programaticly by calling System.getProperties().setProperty(name, value). This is the list of properties that HttpClient recognizes:
Name Type Effect
httpclient.useragent String Sets the User-Agent string to be sent on every HTTP request.
httpclient.authentication.preemptive boolean Sends authorization credentials without requiring explicit requests from the web server