public class ServerCookie extends Object implements Serializable
| Constructor and Description |
|---|
ServerCookie() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendCookieValue(StringBuffer buf,
int version,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure) |
static void |
appendCookieValue(StringBuffer buf,
int version,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure,
boolean encode) |
static void |
appendEncodedCookieValue(StringBuffer buf,
int version,
String name,
String value,
String path,
String domain,
String comment,
int maxAge,
boolean isSecure) |
static boolean |
checkName(String name) |
MessageBytes |
getComment() |
String |
getCookieHeaderName()
Return the header name to set the cookie, based on cookie
version
|
static String |
getCookieHeaderName(int version)
Return the header name to set the cookie, based on cookie
version
|
MessageBytes |
getDomain() |
int |
getMaxAge() |
MessageBytes |
getName() |
MessageBytes |
getPath() |
boolean |
getSecure() |
MessageBytes |
getValue() |
int |
getVersion() |
static boolean |
isToken(String value) |
static void |
log(String s) |
static void |
maybeQuote(int version,
StringBuffer buf,
String value) |
void |
recycle() |
void |
setMaxAge(int expiry) |
void |
setSecure(boolean flag) |
void |
setVersion(int v) |
String |
toString() |
public void recycle()
public MessageBytes getComment()
public MessageBytes getDomain()
public void setMaxAge(int expiry)
public int getMaxAge()
public MessageBytes getPath()
public void setSecure(boolean flag)
public boolean getSecure()
public MessageBytes getName()
public MessageBytes getValue()
public int getVersion()
public void setVersion(int v)
public static boolean isToken(String value)
public static boolean checkName(String name)
public String getCookieHeaderName()
public static String getCookieHeaderName(int version)
public static void appendCookieValue(StringBuffer buf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure)
public static void appendCookieValue(StringBuffer buf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure, boolean encode)
public static void appendEncodedCookieValue(StringBuffer buf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure)
public static void maybeQuote(int version,
StringBuffer buf,
String value)
public static void log(String s)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.