예제 #1
0
 @Override
 public void setSessionAttribute(String name, Object value) {
   if (value == null) {
     session.remove(name);
   } else {
     session.set(name, value, session.getJavaSerializer());
   }
 }
예제 #2
0
 @Override
 public Object getSessionIdentifier() {
   return session.getSession().getId();
 }
예제 #3
0
 @Override
 public Object getSessionAttribute(String name) {
   return session.get(name, session.getJavaSerializer()).orElse(null);
 }