It allows for a fallback to be provided for non-ssl connections
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final SessionConfig | |
| private final Map | |
| private final Map |
| 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 originalUrl, final String sessionId)
Implements io.
|
| public SessionConfig. | |
| public void | setSessionId(final HttpServerExchange
The exchange exchange, final String The session sessionId)Implements io. Attaches the session to the exchange. |
| fallbackSessionConfig | back to summary |
|---|---|
| private final SessionConfig fallbackSessionConfig | |
| reverse | back to summary |
|---|---|
| private final Map<String, SslSessionConfig. | |
| sessions | back to summary |
|---|---|
| private final Map<SslSessionConfig. | |
| SslSessionConfig | back to summary |
|---|---|
| public SslSessionConfig(final SessionConfig fallbackSessionConfig, SessionManager sessionManager) | |
| SslSessionConfig | back to summary |
|---|---|
| public SslSessionConfig(SessionManager sessionManager) | |
| 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 originalUrl, final String sessionId) Implements io.
| |
| 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
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| id | back to summary |
|---|---|
| private final byte[] id | |
| Key | back to summary |
|---|---|
| private Key(byte[] id) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |