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

Quick Search    Search Deep

com.sonalb.net.http.cookie.* (8)

com.sonalb.net.http: Javadoc index of package com.sonalb.net.http.


Package Samples:

com.sonalb.net.http.cookie: Contains classes related to the Hyper Text Transport Protocol (HTTP)  

Classes:

Client: This class is used to invoke the cookie-handling logic of the jCookie Library. It is the developer's view of the library. All cookie-handling methods are invoked on this object. The following snippet shows common-case usage. The highlighted portion is the only cookie-handling code, as far as the developer is concerned. import com.sonalb.net.http.cookie.*; import java.net.*; import java.io.*; ... public class Example { ... public void someMethod() { ... URL url = new URL("http://www.site.com/"); HttpURLConnection huc = (HttpURLConnection) url.openConnection(); // Setup the HttpURLConnection here ...
HTTPRedirectHandler: Convenience class that combines cookie-handling and redirect-handling logic. When the connect() method is invoked, the handler cyclically processes HTTP Redirects (if any), and also takes care of cookie-handling while doing so. The maximum number of redirects defaults to 10. The handler determines a successful run, when the HTTP response code is equal to a specified success code. This code defaults to 200 (OK).
Cookie: The data structure representing a cookie. Supports both Netscape (Version 0) and RFC2965 (Version 1) cookies. The fields common to both these versions are listed below: NAME - Must be set, no default value VALUE - Default value: Empty Domain - Must be set, default: Local Path - Must be set, default: / (root) Secure - Optional, default: false
Header: Represents the Header of an HTTP Message. An HTTP header usually consists of two major components: The first line containing HTTP-Command, HTTP-Version etc. A number of name-value pairs This Header class does not consider the first line as a name-value pair as the HttpURLConnection class does. NULL name fields in a pair are not permitted.
CookieJar: Container for Cookie objects. Each CookieJar is independent of any request. This means that a single CookieJar can hold all the cookies for a number of requests and servers.
MalformedCookieException: Indicates some problem caused by a bad or malformed cookie. For constructor descriptions, see the documentation for superclass.
CookieMatcher: Allows custom matching of Cookies. Applications can use their matching logic to pick out Cookies.
RFC2965CookieParser: Implementation for CookieParser that conforms to cookie specification RFC-2965.
CookieParser: Interface definition for cookie-parsing and specification implementations.
HeaderEntry: Represents a single name-value pair of an HTTP Header.
HeaderUtils: Utility class with methods relevant to HTTP Headers.
CookieUtils: Provides utility functions for internal consumption.

Home | Contact Us | Privacy Policy | Terms of Service