Package | Description |
---|---|
io.jooby | |
io.jooby.internal |
Modifier and Type | Method and Description |
---|---|
Session |
Session.clear()
Remove all attributes.
|
static Session |
Session.create(Context ctx,
String id)
Creates a new session.
|
static Session |
Session.create(Context ctx,
String id,
Map<String,String> data)
Creates a new session.
|
Session |
SessionStore.findSession(Context ctx)
Find an existing session by ID.
|
Session |
SessionStore.InMemory.findSession(Context ctx) |
Session |
SessionStore.newSession(Context ctx)
Creates a new session.
|
Session |
SessionStore.InMemory.newSession(Context ctx) |
default Session |
Session.put(String name,
boolean value)
Put a session attribute.
|
default Session |
Session.put(String name,
CharSequence value)
Put a session attribute.
|
default Session |
Session.put(String name,
double value)
Put a session attribute.
|
default Session |
Session.put(String name,
float value)
Put a session attribute.
|
default Session |
Session.put(String name,
int value)
Put a session attribute.
|
default Session |
Session.put(String name,
long value)
Put a session attribute.
|
default Session |
Session.put(String name,
Number value)
Put a session attribute.
|
Session |
Session.put(String name,
String value)
Put a session attribute.
|
Session |
Session.renewId()
Assign a new ID to the existing session.
|
Session |
ForwardingContext.session() |
default Session |
DefaultContext.session() |
Session |
Context.session()
Find a session or creates a new session.
|
Session |
ForwardingContext.sessionOrNull() |
default Session |
DefaultContext.sessionOrNull() |
Session |
Context.sessionOrNull()
Find an existing session.
|
Session |
Session.setCreationTime(Instant creationTime)
Set session creation time.
|
Session |
Session.setId(String id)
Set Session ID.
|
Session |
Session.setLastAccessedTime(Instant lastAccessedTime)
Set session last accessed time.
|
Session |
Session.setModify(boolean modify)
Set modify flag.
|
Session |
Session.setNew(boolean isNew)
Set new flag.
|
Modifier and Type | Method and Description |
---|---|
void |
SessionStore.deleteSession(Context ctx,
Session session)
Delete a session from store.
|
void |
SessionStore.InMemory.deleteSession(Context ctx,
Session session) |
void |
SessionStore.renewSessionId(Context ctx,
Session session)
Renew Session ID.
|
void |
SessionStore.InMemory.renewSessionId(Context ctx,
Session session) |
void |
SessionStore.saveSession(Context ctx,
Session session)
Save a session.
|
void |
SessionStore.InMemory.saveSession(Context ctx,
Session session) |
void |
SessionStore.touchSession(Context ctx,
Session session)
Session attributes/state has changed.
|
void |
SessionStore.InMemory.touchSession(Context ctx,
Session session) |
Modifier and Type | Class and Description |
---|---|
class |
SessionImpl |
Modifier and Type | Method and Description |
---|---|
Session |
SessionImpl.clear() |
Session |
SignedSessionStore.findSession(Context ctx) |
Session |
MemorySessionStore.findSession(Context ctx) |
Session |
SignedSessionStore.newSession(Context ctx) |
Session |
SessionImpl.put(String name,
String value) |
Session |
SessionImpl.renewId() |
Session |
SessionImpl.setCreationTime(Instant creationTime) |
Session |
SessionImpl.setId(String id) |
Session |
SessionImpl.setLastAccessedTime(Instant lastAccessedTime) |
Session |
SessionImpl.setModify(boolean modify) |
Session |
SessionImpl.setNew(boolean aNew) |
Modifier and Type | Method and Description |
---|---|
void |
SignedSessionStore.deleteSession(Context ctx,
Session session) |
void |
SignedSessionStore.renewSessionId(Context ctx,
Session session) |
void |
SignedSessionStore.saveSession(Context ctx,
Session session) |
void |
SignedSessionStore.touchSession(Context ctx,
Session session) |
Copyright © 2020. All rights reserved.