| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private StandardContext | |
| private static final boolean | |
| private static final int | |
| private static final boolean | |
| private String | |
| private static final StringManager | sm
The string manager for this package. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Cookie | Returns: the cookie for the sessionThe Context for the web application context, String The ID of the session for which the cookie will be created sessionId, boolean Should session cookie be configured as secure secure)Creates a new session cookie for the given session ID |
| public String | getAttribute(String
Name of attribute to return name)Implements jakarta. Obtain the value for a sesison cookie given attribute. |
| public Map | getAttributes()
Implements jakarta. Obtain the Map of attributes and values (excluding version) for this session cookie. |
| public String | getComment()
Implements jakarta. With the adoption of support for RFC 6265, this method should no longer be used. |
| public String | getDomain()
Implements jakarta. Obtain the domain to use for session cookies. |
| public int | getMaxAge()
Implements jakarta. Obtain the maximum age to set for a session cookie. |
| public String | getName()
Implements jakarta. Obtain the name to use for the session cookies. |
| public String | getPath()
Implements jakarta. Obtain the path to use for session cookies. |
| public boolean | isHttpOnly()
Implements jakarta. Will session cookies be created with the httpOnly flag set? |
| public boolean | isSecure()
Implements jakarta. Will session cookies be created with the secure flag set? |
| public void | setAttribute(String
Name of attribute to set name, String Value of attribute value)Implements jakarta. Sets the value for the given session cookie attribute. |
| public void | setComment(String
Ignore comment)Implements jakarta. If called, this method has no effect. |
| public void | setDomain(String
The session cookie domain domain)Implements jakarta. Sets the domain for the session cookie |
| public void | setHttpOnly(boolean
The httpOnly setting to use for session cookies httpOnly)Implements jakarta. Sets the httpOnly flag for the session cookie. |
| public void | setMaxAge(int
the maximum age to set maxAge)Implements jakarta. Sets the maximum age. |
| public void | setName(String
The name of the session cookie name)Implements jakarta. Sets the session cookie name. |
| public void | setPath(String
The session cookie path path)Implements jakarta. Sets the path of the session cookie. |
| public void | setSecure(boolean
The secure setting to use for session cookies secure)Implements jakarta. Sets the secure flag for the session cookie. |
| attributes | back to summary |
|---|---|
| private final Map<String, String> attributes | |
| context | back to summary |
|---|---|
| private StandardContext context | |
| DEFAULT_HTTP_ONLY | back to summary |
|---|---|
| private static final boolean DEFAULT_HTTP_ONLY | |
| DEFAULT_MAX_AGE | back to summary |
|---|---|
| private static final int DEFAULT_MAX_AGE | |
| DEFAULT_SECURE | back to summary |
|---|---|
| private static final boolean DEFAULT_SECURE | |
| name | back to summary |
|---|---|
| private String name | |
| sm | back to summary |
|---|---|
| private static final StringManager sm The string manager for this package. | |
| ApplicationSessionCookieConfig | back to summary |
|---|---|
| public ApplicationSessionCookieConfig(StandardContext context) | |
| createSessionCookie | back to summary |
|---|---|
| public static Cookie createSessionCookie(Context context, String sessionId, boolean secure) Creates a new session cookie for the given session ID | |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(String name) Implements jakarta. Doc from jakarta. Obtain the value for a sesison cookie given attribute. Values returned from this method must be consistent with the values set and returned by the attribute specific getters and setters in this class. | |
| getAttributes | back to summary |
|---|---|
| public Map Implements jakarta. Doc from jakarta. Obtain the Map of attributes and values (excluding version) for this session cookie. | |
| getComment | back to summary |
|---|---|
| public String getComment() Implements jakarta. Doc from jakarta. With the adoption of support for RFC 6265, this method should no longer be used. | |
| getDomain | back to summary |
|---|---|
| public String getDomain() Implements jakarta. Doc from jakarta. Obtain the domain to use for session cookies. | |
| getMaxAge | back to summary |
|---|---|
| public int getMaxAge() Implements jakarta. Doc from jakarta. Obtain the maximum age to set for a session cookie.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements jakarta. Doc from jakarta. Obtain the name to use for the session cookies. | |
| getPath | back to summary |
|---|---|
| public String getPath() Implements jakarta. Doc from jakarta. Obtain the path to use for session cookies. This is normally the context path. | |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() Implements jakarta. Doc from jakarta. Will session cookies be created with the httpOnly flag set?
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Implements jakarta. Doc from jakarta. Will session cookies be created with the secure flag set?
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, String value) Implements jakarta. Doc from jakarta. Sets the value for the given session cookie attribute. When a value is set via this method, the value returned by the attribute specific getter (if any) must be consistent with the value set via this method. | |
| setComment | back to summary |
|---|---|
| public void setComment(String comment) Implements jakarta. Doc from jakarta. If called, this method has no effect. | |
| setDomain | back to summary |
|---|---|
| public void setDomain(String domain) Implements jakarta. Doc from jakarta. Sets the domain for the session cookie | |
| setHttpOnly | back to summary |
|---|---|
| public void setHttpOnly(boolean httpOnly) Implements jakarta. Doc from jakarta. Sets the httpOnly flag for the session cookie.
| |
| setMaxAge | back to summary |
|---|---|
| public void setMaxAge(int maxAge) Implements jakarta. Doc from jakarta. Sets the maximum age.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Implements jakarta. Doc from jakarta. Sets the session cookie name. | |
| setPath | back to summary |
|---|---|
| public void setPath(String path) Implements jakarta. Doc from jakarta. Sets the path of the session cookie. | |
| setSecure | back to summary |
|---|---|
| public void setSecure(boolean secure) Implements jakarta. Doc from jakarta. Sets the secure flag for the session cookie.
| |