| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| public static final String | |
| private boolean | |
| private String | |
| private boolean | |
| private int | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| 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 | |
| public String | |
| public String | |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String | rewriteUrl(final String originalUrl, final String sessionId)
Implements io.
|
| public SessionConfig. | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public SessionCookieConfig | |
| public void | setSessionId(final HttpServerExchange
The exchange exchange, final String The session sessionId)Implements io. Attaches the session to the exchange. |
| comment | back to summary |
|---|---|
| private String comment | |
| cookieName | back to summary |
|---|---|
| private String cookieName | |
| DEFAULT_SESSION_ID | back to summary |
|---|---|
| public static final String DEFAULT_SESSION_ID | |
| discard | back to summary |
|---|---|
| private boolean discard | |
| domain | back to summary |
|---|---|
| private String domain | |
| httpOnly | back to summary |
|---|---|
| private boolean httpOnly | |
| maxAge | back to summary |
|---|---|
| private int maxAge | |
| path | back to summary |
|---|---|
| private String path | |
| secure | back to summary |
|---|---|
| private boolean secure | |
| SessionCookieConfig | back to summary |
|---|---|
| public SessionCookieConfig() | |
| 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.
| |
| getComment | back to summary |
|---|---|
| public String getComment() | |
| getCookieName | back to summary |
|---|---|
| public String getCookieName() | |
| getDomain | back to summary |
|---|---|
| public String getDomain() | |
| getMaxAge | back to summary |
|---|---|
| public int getMaxAge() | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| isDiscard | back to summary |
|---|---|
| public boolean isDiscard() | |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() | |
| rewriteUrl | back to summary |
|---|---|
| public String rewriteUrl(final String originalUrl, final String sessionId) Implements io.
| |
| sessionCookieSource | back to summary |
|---|---|
| public SessionConfig. Implements io.
| |
| setComment | back to summary |
|---|---|
| public SessionCookieConfig setComment(final String comment) | |
| setCookieName | back to summary |
|---|---|
| public SessionCookieConfig setCookieName(final String cookieName) | |
| setDiscard | back to summary |
|---|---|
| public SessionCookieConfig setDiscard(final boolean discard) | |
| setDomain | back to summary |
|---|---|
| public SessionCookieConfig setDomain(final String domain) | |
| setHttpOnly | back to summary |
|---|---|
| public SessionCookieConfig setHttpOnly(final boolean httpOnly) | |
| setMaxAge | back to summary |
|---|---|
| public SessionCookieConfig setMaxAge(final int maxAge) | |
| setPath | back to summary |
|---|---|
| public SessionCookieConfig setPath(final String path) | |
| setSecure | back to summary |
|---|---|
| public SessionCookieConfig setSecure(final boolean secure) | |
| 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
| |