Interface SessionDao
- All Known Implementing Classes:
RedisSessionDao
,ServletSessionDao
public interface SessionDao
The Session Data Access Object interface.
- Author:
- Martin Lindström, Felix Hellman
-
Method Summary
Modifier and TypeMethodDescription<T> T
Reads the object identified bykey
of typetClass
.void
Removes the object identified bykey
.void
Writes objectvalue
under the keykey
.
-
Method Details
-
write
Writes objectvalue
under the keykey
.- Parameters:
key
- the object keyvalue
- the objectrequest
- the HTTP servlet request
-
read
Reads the object identified bykey
of typetClass
.- Type Parameters:
T
- the type- Parameters:
key
- the object keytClass
- the type of the object to readrequest
- the HTTP servlet request- Returns:
- the object, or
null
if none is available
-
remove
Removes the object identified bykey
.- Parameters:
key
- the object keyrequest
- the HTTP servlet request
-