Class CookieTool.SugarCookie
java.lang.Object
javax.servlet.http.Cookie
org.apache.velocity.tools.view.CookieTool.SugarCookie
- All Implemented Interfaces:
Serializable, Cloneable
- Enclosing class:
CookieTool
public static class CookieTool.SugarCookie
extends javax.servlet.http.Cookie
Extends
Cookie to add some fluid API sugar and
a toString() method that renders the Cookie's value
instead of the usual Object.toString() shenanigans.- Since:
- VelocityTools 2.0
- Version:
- $Id$
- Author:
- Dmitri Colebatch, Nathan Bubna
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSugarCookie(String name, String value) SugarCookie(javax.servlet.http.Cookie c) -
Method Summary
Methods inherited from class javax.servlet.http.Cookie
clone, getComment, getDomain, getMaxAge, getName, getPath, getSecure, getValue, getVersion, isHttpOnly, setComment, setDomain, setHttpOnly, setMaxAge, setPath, setSecure, setValue, setVersion
-
Constructor Details
-
SugarCookie
public SugarCookie(javax.servlet.http.Cookie c) -
SugarCookie
-
-
Method Details
-
value
-
maxAge
-
comment
-
domain
-
path
-
version
-
secure
-
getPlain
public javax.servlet.http.Cookie getPlain() -
toString
-