java.lang.Object
io.jooby.SessionToken.HeaderID
- All Implemented Interfaces:
SessionToken
- Enclosing interface:
- SessionToken
Looks for a session ID from request headers. This strategy:
- find a token from a request header. - on save, send the header back as response header. - on session destroy. don't send response header back.
-
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
-
HeaderID
Creates a new Header ID.- Parameters:
name
- Header's name.
-
-
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.
-