| Home >> All >> com >> [ sonalb Javadoc ] |
| | com.sonalb.net.* (12) | | com.sonalb.net.http.* (12) | | com.sonalb.net.http.cookie.* (8) |
com.sonalb: Javadoc index of package com.sonalb.
Package Samples:
com.sonalb.net.http.cookie: Contains classes related to the Hyper Text Transport Protocol (HTTP)
com.sonalb.net.http: Contains utility classes and other classes with a general scope.
Classes:
IEnhancedException: Allows implementing classes to contain an application-specific error code, the class and method of origin, a data Object , and any underlying (causal) Exception . These enhancements are described below :- Error Code : A unique code is assigned to each application-specific error condition. This code may be useful for troubleshooting, or it may be used as a reference to allow the user to obtain more detailed information about the particular error condition. Class of origin : Method of origin : These two allow the convenient determination of the class and the method where this IEnhancedException instance ...
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
EnhancedIOException: Convenience implementation of IEnhancedException interface, and subclass of java.io.IOException . Setter methods for the error code, causal Exception, class and method of origin, and data Object are provided. However, once these fields have been set, any subsequent calls to the respective setters throws an UnsupportedOperationException .
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.
EnhancedRuntimeException: Convenience implementation of IEnhancedException interface, and subclass of RuntimeException . Setter methods for the error code, causal Exception, class and method of origin, and data Object are provided. However, once these fields have been set, any subsequent calls to the respective setters throws an UnsupportedOperationException .
EnhancedException: Convenience implementation of IEnhancedException interface, and subclass of Exception . Setter methods for the error code, causal Exception, class and method of origin, and data Object are provided. However, once these fields have been set, any subsequent calls to the respective setters throws an UnsupportedOperationException .
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.
Utils: Utility class containing several general-purpose methods for system-wide consumption.
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 |