Package org.javalite.activeweb
Class Cookie
java.lang.Object
org.javalite.activeweb.Cookie
- Author:
- Igor Polevoy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getName()
getPath()
getValue()
int
boolean
Tells if a cookie HTTP only or not.boolean
isSecure()
void
void
Sets this cookie to be HTTP only.void
setHttpOnly(boolean httpOnly)
Sets this cookie to be Http only or notvoid
setMaxAge(int maxAge)
void
void
setSecure(boolean secure)
void
void
setVersion(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
-