|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.http.HttpCookieManager
public class HttpCookieManager
This object manages cookies defined in http request and response headers.
Constructor Summary | |
---|---|
HttpCookieManager()
Constructs a new cookie manager. |
Method Summary | |
---|---|
void |
clear()
Removes all cookies from this manager. |
javax.servlet.http.Cookie[] |
getCookies()
Returns an array of the cookies being managed. |
java.lang.String |
getRequestHeader()
Returns the string representation of all the cookies being managed by this object as an http cookie request header. |
java.lang.String |
getRequestHeader(java.lang.String path,
java.lang.String domain)
Returns the string representation of the cookies being managed by this object as an http cookie request header The format of the header is: |
java.lang.String |
getResponseHeader()
Returns the string representation of the cookies being managed by this object as an http cookie response ("Set-Cookie") header. |
void |
mergeHeader(java.lang.String header)
Merges the cookies contained in the specified http response header into the set of cookies being managed by this object. |
java.lang.String |
toString()
Returns the string representation of the headers/cookies being managed by this object as an http cookie response header (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpCookieManager()
Method Detail |
---|
public java.lang.String getRequestHeader()
NAME1=VALUE1; NAME2=VALUE2; ....
public java.lang.String getRequestHeader(java.lang.String path, java.lang.String domain)
NAME1=VALUE1; NAME2=VALUE2; ....
path
- Only return the cookies that are valid in the specified
path. If path is null then path is ignored.domain
- Only return the cookies that are valid in the specified
domain. If null, the domain is ignored.
public java.lang.String getResponseHeader()
name=value [;EXPIRES=dateValue] [;DOMAIN=domainName] [;PATH=path] [;SECURE]
public void mergeHeader(java.lang.String header)
header
- the Set-Cookie http response header to merge.public javax.servlet.http.Cookie[] getCookies()
Cookie
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
|
EAF 7.4 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |