Generally this will just set a cookie.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final AttachmentKey |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearSession(final HttpServerExchange
The exchange exchange, final String The session id sessionId)Clears this session from the exchange, removing the attachment and making any changes to the response necessary, such as clearing cookies. |
| public String | Returns: The session id, or nullThe exchange exchange)Retrieves a session id of an existing session from an exchange. |
| public String | |
| public SessionConfig. | |
| public void | setSessionId(final HttpServerExchange
The exchange exchange, final String The session sessionId)Attaches the session to the exchange. |
| ATTACHMENT_KEY | back to summary |
|---|---|
| public static final AttachmentKey<SessionConfig> ATTACHMENT_KEY | |
| clearSession | back to summary |
|---|---|
| public void clearSession(final HttpServerExchange exchange, final String sessionId) Clears this session from the exchange, removing the attachment and making any changes to the response necessary, such as clearing cookies.
| |
| findSessionId | back to summary |
|---|---|
| public String findSessionId(final HttpServerExchange exchange) Retrieves a session id of an existing session from an exchange.
| |
| rewriteUrl | back to summary |
|---|---|
| public String rewriteUrl(final String originalUrl, final String sessionId) | |
| sessionCookieSource | back to summary |
|---|---|
| public SessionConfig. | |
| setSessionId | back to summary |
|---|---|
| public void setSessionId(final HttpServerExchange exchange, final String sessionId) Attaches the session to the exchange. The method should attach the exchange under an attachment key, and should also modify the exchange to allow the session to be re-attached on the next request. Generally this will involve setting a cookie
Once a session has been attached it must be possible to retrieve it via
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SessionConfig. | |
| public static final SessionConfig. | |
| public static final SessionConfig. | |
| public static final SessionConfig. | |
| public static final SessionConfig. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SessionConfig. | |
| public static SessionConfig. |
| COOKIE | back to summary |
|---|---|
| public static final SessionConfig. | |
| NONE | back to summary |
|---|---|
| public static final SessionConfig. | |
| OTHER | back to summary |
|---|---|
| public static final SessionConfig. | |
| SSL | back to summary |
|---|---|
| public static final SessionConfig. | |
| URL | back to summary |
|---|---|
| public static final SessionConfig. | |
| SessionCookieSource | back to summary |
|---|---|
| private SessionCookieSource() | |
| valueOf | back to summary |
|---|---|
| public static SessionConfig. | |
| values | back to summary |
|---|---|
| public static SessionConfig. | |