|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
IHttpClientState | Generic interface for storing client-side state information, which can be passed back to the server, and have security checks. |
IHttpClientStateParser | Parses cookies to and from the HTTP messages. |
IHttpResponseMessage | An interface which contains all the information received from the HTTP request message. |
NetscapeCookieParser.ICookieValueParser |
Class Summary | |
Cookie | Java implementation of RFC 2109 and the Netscape cookie specification. |
HttpClientStateUtil | Utility class for the Java implementation of RFC 2109 and the Netscape cookie specification. |
HttpResponseMessageImpl | |
NetscapeCookieParser | Parses cookies to and from the HTTP messages. |
NetscapeCookieParser.NameValuePair | |
Rfc2109CookieParser | Parses cookies to and from the HTTP messages, but only using the RFC 2109 format. |
SimpleHttpGet | This class is used to replace the HTTPConnection. |
Contains classes which are optimized for HTTP connections. Provides superior functionality and speed over the standard Java URL HTTP connection interface.
Also, there is Cookie support for both RFC-2109 and Netscape cookies, as well as an architecture broad enough to support any new or rare client-state format. To retrieve the cookies from a message, follow this example:
SimpleHttpGet httpGet = new SimpleHttpGet( "my.domain.com" ); httpGet.connect(); URL url = new URL( "http://my.domain.com/path/index.html" ); IHttpResponseMessage msg = httpGet.getURLResponse( url ); IHttpClientState cookies[] = HttpClientStateUtil.getInstance(). getClientStates( msg );And to place the cookies into a message for a return call, perform:
Hashtable headers = new Hashtable(); HttpClientStateUtil.getInstance().renderGetHeader( cookies, headers, url ); msg = httpGet.getURLResponse( url, "GET", headers, null );
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |