| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | clearSession(final HttpServerExchange
The exchange exchange, final String The session id sessionId)Implements io. Clears this session from the exchange, removing the attachment and making any changes to the response necessary, such as clearing cookies. |
| public String | findSessionId(final HttpServerExchange
The exchange exchange)Implements io. Retrieves a session id of an existing session from an exchange. |
| public String | rewriteUrl(final String
URL to be encoded with the session id url, final String Session id to be included in the encoded URL sessionId)Implements io. Return the specified URL with the specified session identifier suitably encoded. |
| public SessionConfig. | |
| public void | setSessionId(final HttpServerExchange
The exchange exchange, final String The session sessionId)Implements io. Attaches the session to the exchange. |
| name | back to summary |
|---|---|
| private final String name | |
| PathParameterSessionConfig | back to summary |
|---|---|
| public PathParameterSessionConfig(final String name) | |
| PathParameterSessionConfig | back to summary |
|---|---|
| public PathParameterSessionConfig() | |
| clearSession | back to summary |
|---|---|
| public void clearSession(final HttpServerExchange exchange, final String sessionId) Implements io. Doc from io. 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) Implements io. Doc from io. Retrieves a session id of an existing session from an exchange.
| |
| rewriteUrl | back to summary |
|---|---|
| public String rewriteUrl(final String url, final String sessionId) Implements io. Return the specified URL with the specified session identifier suitably encoded. | |
| sessionCookieSource | back to summary |
|---|---|
| public SessionConfig. Implements io.
| |
| setSessionId | back to summary |
|---|---|
| public void setSessionId(final HttpServerExchange exchange, final String sessionId) Implements io. Doc from io. 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
| |