public interface SessionId
It is generally not necessary to use this type directly.
It is used by the provided impl of Session
to discover (and generate) the session ID.
The SessionModule
provides a default implementation of this type that uses SessionIdGenerator
,
and a cookie, based on SessionCookieConfig
to store the session id.
Modifier and Type | Method and Description |
---|---|
static SessionId |
constant(io.netty.util.AsciiString value)
A session ID that always returns the same value.
|
static SessionId |
empty()
A session ID that is always empty.
|
io.netty.util.AsciiString |
getValue()
Get the session ID value, generating a new one if necessary.
|
void |
terminate()
Terminate the current session id, disassociating it from the current user.
|
io.netty.util.AsciiString getValue()
void terminate()
static SessionId constant(io.netty.util.AsciiString value)
value
- the session ID valuestatic SessionId empty()