|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.http.Cookie
org.glassfish.grizzly.http.LazyCookie
public class LazyCookie
Lazy wrapper over Cookie.
The String representations of the cookie's attributes will be initialized on the first get...() call.
| Field Summary |
|---|
| Fields inherited from class org.glassfish.grizzly.http.Cookie |
|---|
comment, domain, isHttpOnly, maxAge, name, path, secure, value, version |
| Constructor Summary | |
|---|---|
LazyCookie()
|
|
| Method Summary | |
|---|---|
protected void |
checkInitialized()
|
String |
getComment()
Returns the comment describing the purpose of this cookie, or null if the cookie has no comment. |
String |
getDomain()
Returns the domain name set for this cookie. |
int |
getMaxAge()
Returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist
until browser shutdown. |
String |
getName()
Returns the name of the cookie. |
String |
getPath()
Returns the path on the server to which the browser returns this cookie. |
String |
getValue()
Returns the value of the cookie. |
int |
getVersion()
Returns the version of the protocol this cookie complies with. |
protected void |
initialize()
|
boolean |
isSecure()
Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol. |
LazyCookieState |
lazy()
Returns the lazy state representation. |
protected boolean |
lazyNameEquals(String name)
|
void |
recycle()
|
protected String |
unescape(String s)
|
| Methods inherited from class org.glassfish.grizzly.http.Cookie |
|---|
asClientCookieBuffer, asClientCookieBuffer, asClientCookieString, asServerCookieBuffer, asServerCookieBuffer, asServerCookieString, checkName, clone, getCookieHeaderName, getCookieHeaderName, isHttpOnly, setComment, setDomain, setHttpOnly, setMaxAge, setPath, setSecure, setValue, setVersion |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LazyCookie()
| Method Detail |
|---|
public String getName()
getName in class CookieString specifying the cookie's namepublic String getValue()
getValue in class CookieString containing the cookie's
present valueCookie.setValue(java.lang.String),
Cookiepublic int getVersion()
getVersion in class CookieCookie.setVersion(int)public String getComment()
null if the cookie has no comment.
getComment in class CookieString containing the comment,
or null if noneCookie.setComment(java.lang.String)public String getDomain()
getDomain in class CookieString containing the domain nameCookie.setDomain(java.lang.String)public int getMaxAge()
-1 indicating the cookie will persist
until browser shutdown.
getMaxAge in class CookieCookie.setMaxAge(int)public String getPath()
getPath in class CookieString specifying a path that contains
a servlet name, for example, /catalogCookie.setPath(java.lang.String)public boolean isSecure()
isSecure in class CookieCookie.setSecure(boolean)protected final void checkInitialized()
protected void initialize()
public LazyCookieState lazy()
protected boolean lazyNameEquals(String name)
lazyNameEquals in class Cookiepublic void recycle()
protected String unescape(String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||