| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Value of specified attributeName of attribute to return name)Obtain the value for a sesison cookie given attribute. |
| public Map | Returns: A read-only Map of attributes to values, excluding version.Obtain the Map of attributes and values (excluding version) for this session cookie. |
| public String | Returns: alwaysnull
Deprecated
for removal since Servlet 6.0. This is no longer required with RFC 6265
With the adoption of support for RFC 6265, this method should no longer be used. |
| public String | Returns: the domain to use for session cookies.Obtain the domain to use for session cookies. |
| public int | |
| public String | Returns: the name to use for session cookies.Obtain the name to use for the session cookies. |
| public String | |
| public boolean | Returns: true if the flag should be set, otherwise falseWill session cookies be created with the httpOnly flag set? |
| public boolean | Returns: true if the flag should be set, otherwise falseWill session cookies be created with the secure flag set? |
| public void | setAttribute(String
Name of attribute to set name, String Value of attribute value)Sets the value for the given session cookie attribute. |
| public void | setComment(String
Ignore comment)
Deprecated
for removal since Servlet 6.0. This is no longer required with RFC 6265
If called, this method has no effect. |
| public void | |
| public void | setHttpOnly(boolean
The httpOnly setting to use for session cookies httpOnly)Sets the httpOnly flag for the session cookie. |
| public void | |
| public void | |
| public void | |
| public void | setSecure(boolean
The secure setting to use for session cookies secure)Sets the secure flag for the session cookie. |
| getAttribute | back to summary |
|---|---|
| public String getAttribute(String name) 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 Obtain the Map of attributes and values (excluding version) for this session cookie. | |
| getComment | back to summary |
|---|---|
| public String getComment()
Deprecated for removal since Servlet 6.0. This is no longer required with RFC 6265 With the adoption of support for RFC 6265, this method should no longer be used.
| |
| getDomain | back to summary |
|---|---|
| public String getDomain() Obtain the domain to use for session cookies.
| |
| getMaxAge | back to summary |
|---|---|
| public int getMaxAge() Obtain the maximum age to set for a session cookie.
| |
| getName | back to summary |
|---|---|
| public String getName() Obtain the name to use for the session cookies.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Obtain the path to use for session cookies. This is normally the context path.
| |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() Will session cookies be created with the httpOnly flag set?
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Will session cookies be created with the secure flag set?
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, String value) 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)
Deprecated for removal since Servlet 6.0. This is no longer required with RFC 6265 If called, this method has no effect.
| |
| setDomain | back to summary |
|---|---|
| public void setDomain(String domain) Sets the domain for the session cookie
| |
| setHttpOnly | back to summary |
|---|---|
| public void setHttpOnly(boolean httpOnly) Sets the httpOnly flag for the session cookie.
| |
| setMaxAge | back to summary |
|---|---|
| public void setMaxAge(int MaxAge) Sets the maximum age.
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the session cookie name.
| |
| setPath | back to summary |
|---|---|
| public void setPath(String path) Sets the path of the session cookie.
| |
| setSecure | back to summary |
|---|---|
| public void setSecure(boolean secure) Sets the secure flag for the session cookie.
| |