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

Quick Search    Search Deep

Package gnu.java.net.protocol.http.event

This package contains an HTTP/1.1 client, as described in RFC 2616.

See:
          Description

Interface Summary
ConnectionListener A connection listener.
RequestListener A request listener.
 

Class Summary
ConnectionEvent A connection event.
RequestEvent A request event.
 

Package gnu.java.net.protocol.http.event Description

This package contains an HTTP/1.1 client, as described in RFC 2616. It supports the following features:

The API is similar to the neon WebDAV/HTTP library. A logical connection to the server is instantiated, and multiple requests can be issued for this connection. Each request has an atomic dispatch method which returns the response. All I/O, authentication, etc is handled by registering callback objects with the request prior to dispatch, which are notified during the dispatch procedure as necessary. Simple byte-array content callbacks are supplied which can manage any request/response content that fits in available memory.

An URL stream handler is provided, supporting the full HttpURLConnection specification.