net.groboclown.util.http.v1
Class HttpClientStateUtil
java.lang.Object
|
+--net.groboclown.util.http.v1.HttpClientStateUtil
- public class HttpClientStateUtil
- extends Object
Utility class for the
Java implementation of RFC 2109
and the Netscape cookie specification.
Note that attributes (names and values) are case insensitive.
- Since:
- Alpha 0.9.1
- Version:
- Alpha 0.9.1
- Author:
- Matt Albrecht
Constructor Summary |
protected |
HttpClientStateUtil()
Default constructor - made protected so
users won't instantiate the utility |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
s_instance
protected static HttpClientStateUtil s_instance
parsers
private IHttpClientStateParser[] parsers
COOKIE_NAME
private static final String COOKIE_NAME
HttpClientStateUtil
protected HttpClientStateUtil()
- Default constructor - made protected so
users won't instantiate the utility
getInstance
public static HttpClientStateUtil getInstance()
- Retrieve the shared instance of the utility class.
- Returns:
- the utility instance
renderGetHeader
public void renderGetHeader(IHttpClientState[] list,
Hashtable headers,
URL destURI)
- Create an HTTP header for sending the cookies. It requires
the URI that the cookie list is being sent to, so that only
those cookies which are required for the URI will receive the
cookies.
getClientStates
public IHttpClientState[] getClientStates(IHttpResponseMessage msg)
- Retrieves all cookies given in the header of the retrieved
message.
Written under the LGPL