Package org.apache.velocity.tools.view
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.- 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