public static class CookieTool.SugarCookie
extends javax.servlet.http.Cookie
Cookie
to add some fluid API sugar and
a toString() method that renders the Cookie's value
instead of the usual Object.toString() shenanigans.Constructor and Description |
---|
SugarCookie(javax.servlet.http.Cookie c) |
SugarCookie(String name,
String value) |
Modifier and Type | Method and Description |
---|---|
CookieTool.SugarCookie |
comment(Object obj) |
CookieTool.SugarCookie |
domain(Object obj) |
javax.servlet.http.Cookie |
getPlain() |
CookieTool.SugarCookie |
maxAge(Object obj) |
CookieTool.SugarCookie |
path(Object obj) |
CookieTool.SugarCookie |
secure(Object obj) |
String |
toString() |
CookieTool.SugarCookie |
value(Object obj) |
CookieTool.SugarCookie |
version(Object obj) |
public CookieTool.SugarCookie value(Object obj)
public CookieTool.SugarCookie maxAge(Object obj)
public CookieTool.SugarCookie comment(Object obj)
public CookieTool.SugarCookie domain(Object obj)
public CookieTool.SugarCookie path(Object obj)
public CookieTool.SugarCookie version(Object obj)
public CookieTool.SugarCookie secure(Object obj)
public javax.servlet.http.Cookie getPlain()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.