|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.http.cookie.CookieUtilities
public class CookieUtilities
Cookie utilities class
Field Summary | |
---|---|
static String |
REQUEST_COOKIE_HEADER
|
static String |
REQUEST_COOKIES_ATTRIBUTE
|
static String |
RESPONSE_COOKIE_HEADER
|
static String |
RESPONSE_COOKIES_ATTRIBUTE
|
Constructor Summary | |
---|---|
CookieUtilities()
|
Method Summary | |
---|---|
static void |
addResponseCookies(HTTPConnection connection,
Collection<Cookie> cookies)
Adds response cookie |
static Map<String,Cookie> |
getRequestCookies(HTTPConnection connection)
Obtains request cookies as a map |
static Map<String,Cookie> |
getResponseCookies(HTTPConnection connection)
Returns all response cookies as a map |
protected static Map<String,String> |
obtainCookieHeaders(MultiStringMap responseHeaders)
Obtains cookie headers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String RESPONSE_COOKIES_ATTRIBUTE
public static final String RESPONSE_COOKIE_HEADER
public static final String REQUEST_COOKIES_ATTRIBUTE
public static final String REQUEST_COOKIE_HEADER
Constructor Detail |
---|
public CookieUtilities()
Method Detail |
---|
public static Map<String,Cookie> getResponseCookies(HTTPConnection connection)
connection
- http connection
public static void addResponseCookies(HTTPConnection connection, Collection<Cookie> cookies)
connection
- http connectioncookies
- cookieprotected static Map<String,String> obtainCookieHeaders(MultiStringMap responseHeaders)
responseHeaders
- response headers
public static Map<String,Cookie> getRequestCookies(HTTPConnection connection)
connection
- http connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |