Package org.javalite.activeweb
Class Cookie
java.lang.Object
org.javalite.activeweb.Cookie
- Author:
- Igor Polevoy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetName()getPath()getValue()intbooleanTells if a cookie HTTP only or not.booleanisSecure()voidvoidSets this cookie to be HTTP only.voidsetHttpOnly(boolean httpOnly)Sets this cookie to be Http only or notvoidsetMaxAge(int maxAge)voidvoidsetSecure(boolean secure)voidvoidsetVersion(int version)toString()
-
Constructor Details
-
Cookie
-
Cookie
-
-
Method Details
-
setMaxAge
public void setMaxAge(int maxAge) -
getMaxAge
public int getMaxAge() -
setPath
-
getPath
-
setDomain
-
getDomain
-
setSecure
public void setSecure(boolean secure) -
isSecure
public boolean isSecure() -
getName
-
setValue
-
getValue
-
getVersion
public int getVersion() -
setVersion
public void setVersion(int version) -
setHttpOnly
public void setHttpOnly()Sets this cookie to be HTTP only. This will only work with Servlet 3 -
isHttpOnly
public boolean isHttpOnly()Tells if a cookie HTTP only or not. This will only work with Servlet 3 -
setHttpOnly
public void setHttpOnly(boolean httpOnly)Sets this cookie to be Http only or not -
toString
-