| Package | Description |
|---|---|
| org.osgl.http | |
| org.osgl.http.util |
| Modifier and Type | Method and Description |
|---|---|
H.Session |
H.Session.cache(String key,
Object obj)
Store an object into cache using key specified.
|
H.Session |
H.Session.cache(String key,
Object obj,
int expiration)
Store an object into cache with expiration specified
|
H.Session |
H.Session.cacheFor10Min(String key,
Object obj)
Store an object into cache for 10 minutes
|
H.Session |
H.Session.cacheFor1Hr(String key,
Object obj)
Store an object into cache for 1 hour
|
H.Session |
H.Session.cacheFor1Min(String key,
Object obj)
Store an object into cache for 1 minutes
|
H.Session |
H.Session.cacheFor30Min(String key,
Object obj)
Store an object into cache for 30 minutes
|
static H.Session |
H.Session.current()
Return a session instance of the current execution context, For example from a
ThreadLocal |
H.Session |
H.Session.decr(String key)
Decrement the value associated with
key by one. |
H.Session |
H.Session.decr(String key,
int n)
Decrement the value associated with
key by n. |
H.Session |
H.Session.evict(String key)
Evict an object from cache
|
H.Session |
H.Session.expireOn(long expiry)
Set session expiry in milliseconds
|
H.Session |
H.Session.incr(String key)
Increment the value associated with
key by one. |
H.Session |
H.Session.incr(String key,
int n)
Increment the value associated with
key by n. |
static H.Session |
H.Session.resolve(H.Cookie sessionCookie,
int ttl)
Resolve a Session instance from a session cookie
|
H.Session |
CurrentStateStore.session()
Get current session.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
H.Session.current(H.Session session)
Set a session instance into the current execution context, for example into a
ThreadLocal |
void |
CurrentStateStore.session(H.Session sess)
Store session as current state.
|
| Modifier and Type | Method and Description |
|---|---|
H.Session |
DefaultCurrentStateStore.session() |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultCurrentStateStore.session(H.Session sess) |
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.