Package io.undertow.server.session
Class CookieAttributes<T extends CookieAttributes>
- java.lang.Object
-
- io.undertow.server.session.CookieAttributes<T>
-
- Direct Known Subclasses:
SessionCookieConfig
public abstract class CookieAttributes<T extends CookieAttributes> extends Object
Base class to handle cookie attribs
-
-
Field Summary
Fields Modifier and Type Field Description protected CookieImplkernel
-
Constructor Summary
Constructors Modifier Constructor Description protectedCookieAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute(String name)Map<String,String>getAttributes()StringgetComment()StringgetDomain()intgetMaxAge()StringgetPath()booleanisDiscard()booleanisHttpOnly()booleanisSecure()TsetAttribute(String name, String value)TsetComment(String comment)TsetDiscard(boolean discard)TsetDomain(String domain)TsetHttpOnly(boolean httpOnly)TsetMaxAge(int maxAge)TsetPath(String path)TsetSecure(boolean secure)
-
-
-
Field Detail
-
kernel
protected final CookieImpl kernel
-
-
Method Detail
-
getPath
public String getPath()
-
getDomain
public String getDomain()
-
isDiscard
public boolean isDiscard()
-
setDiscard
public T setDiscard(boolean discard)
-
isSecure
public boolean isSecure()
-
setSecure
public T setSecure(boolean secure)
-
isHttpOnly
public boolean isHttpOnly()
-
setHttpOnly
public T setHttpOnly(boolean httpOnly)
-
getMaxAge
public int getMaxAge()
-
setMaxAge
public T setMaxAge(int maxAge)
-
getComment
public String getComment()
-
-