java.lang.Object
io.jooby.SessionToken.CookieID
- All Implemented Interfaces:
SessionToken
- Enclosing interface:
- SessionToken
Looks for a session ID from request cookie headers. This strategy:
- find a token from a request cookie. - on save, set a response cookie on new sessions or when cookie has a max-age value. - on destroy, expire the cookie.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jooby.SessionToken
SessionToken.CookieID, SessionToken.HeaderID, SessionToken.SignedCookie
-
Field Summary
Fields inherited from interface io.jooby.SessionToken
ID_SIZE, RND, SID
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jooby.SessionToken
newToken
-
Constructor Details
-
CookieID
Creates a Cookie ID.- Parameters:
cookie
- Cookie to use.
-
-
Method Details
-
findToken
Description copied from interface:SessionToken
Find session ID.- Specified by:
findToken
in interfaceSessionToken
- Parameters:
ctx
- Web context.- Returns:
- Session ID or
null
.
-
saveToken
Description copied from interface:SessionToken
Save session ID in the web context.- Specified by:
saveToken
in interfaceSessionToken
- Parameters:
ctx
- Web context.token
- Token/data to save.
-
deleteToken
Description copied from interface:SessionToken
Delete session ID in the web context.- Specified by:
deleteToken
in interfaceSessionToken
- Parameters:
ctx
- Web context.token
- Token/data to delete.
-