Package org.analogweb.core
Class DefaultCookie
- java.lang.Object
-
- org.analogweb.core.DefaultCookie
-
- All Implemented Interfaces:
Cookies.Cookie
public class DefaultCookie extends Object implements Cookies.Cookie
-
-
Constructor Summary
Constructors Constructor Description DefaultCookie(String name, String value)
DefaultCookie(String name, String value, String domain, String path, Date expires, int maxAge, boolean secure, boolean httpOnly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
appendEscapingQuotes(StringBuilder b, String value)
static void
appendQuotedIfWhitespace(StringBuilder b, String value)
static boolean
containsWhiteSpace(String s)
String
getComment()
String
getDomain()
Date
getExpires()
int
getMaxAge()
String
getName()
String
getPath()
String
getValue()
int
getVersion()
boolean
isHttpOnly()
boolean
isSecure()
static boolean
isWhiteSpace(char c)
String
toString()
-
-
-
Method Detail
-
getComment
public String getComment()
- Specified by:
getComment
in interfaceCookies.Cookie
-
getExpires
public Date getExpires()
-
getDomain
public String getDomain()
- Specified by:
getDomain
in interfaceCookies.Cookie
-
getMaxAge
public int getMaxAge()
- Specified by:
getMaxAge
in interfaceCookies.Cookie
-
getName
public String getName()
- Specified by:
getName
in interfaceCookies.Cookie
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceCookies.Cookie
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceCookies.Cookie
-
getVersion
public int getVersion()
- Specified by:
getVersion
in interfaceCookies.Cookie
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfaceCookies.Cookie
-
isHttpOnly
public boolean isHttpOnly()
-
appendQuotedIfWhitespace
public static void appendQuotedIfWhitespace(StringBuilder b, String value)
-
containsWhiteSpace
public static boolean containsWhiteSpace(String s)
-
isWhiteSpace
public static boolean isWhiteSpace(char c)
-
appendEscapingQuotes
public static void appendEscapingQuotes(StringBuilder b, String value)
-
-