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> TReads the object identified bykeyof typetClass.voidRemoves the object identified bykey.voidWrites objectvalueunder the keykey.
-
Method Details
-
write
Writes objectvalueunder the keykey.- Parameters:
key- the object keyvalue- the objectrequest- the HTTP servlet request
-
read
Reads the object identified bykeyof 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
nullif none is available
-
remove
Removes the object identified bykey.- Parameters:
key- the object keyrequest- the HTTP servlet request
-