| java.lang.Object org.apache.tomcat.util.http.ServerCookie
ServerCookie | public class ServerCookie implements Serializable(Code) | | Server-side cookie representation.
Allows recycling and uses MessageBytes as low-level
representation ( and thus the byte-> char conversion can be delayed
until we know the charset ).
Tomcat.core uses this recyclable object to represent cookies,
and the facade will convert it to the external representation.
|
Field Summary | |
final static int | dbg |
Method Summary | |
public static void | appendCookieValue(StringBuffer buf, int version, String name, String value, String path, String domain, String comment, int maxAge, boolean isSecure) | public static boolean | checkName(String name) | public MessageBytes | getComment() | public String | getCookieHeaderName() | public static String | getCookieHeaderName(int version) | public MessageBytes | getDomain() | public int | getMaxAge() | public MessageBytes | getName() | public MessageBytes | getPath() | public boolean | getSecure() | public MessageBytes | getValue() | public int | getVersion() | public static boolean | isToken(String value) | public static boolean | isToken2(String value) | public static void | log(String s) | public static void | maybeQuote(int version, StringBuffer buf, String value) | public static void | maybeQuote2(int version, StringBuffer buf, String value) | public void | recycle() | public void | setMaxAge(int expiry) | public void | setSecure(boolean flag) | public void | setVersion(int v) | public String | toString() |
ServerCookie | public ServerCookie()(Code) | | |
getCookieHeaderName | public String getCookieHeaderName()(Code) | | Return the header name to set the cookie, based on cookie
version
|
getCookieHeaderName | public static String getCookieHeaderName(int version)(Code) | | Return the header name to set the cookie, based on cookie
version
|
getMaxAge | public int getMaxAge()(Code) | | |
getSecure | public boolean getSecure()(Code) | | |
getVersion | public int getVersion()(Code) | | |
recycle | public void recycle()(Code) | | |
setMaxAge | public void setMaxAge(int expiry)(Code) | | |
setSecure | public void setSecure(boolean flag)(Code) | | |
setVersion | public void setVersion(int v)(Code) | | |
|
|