use of tomcat.request.session.SessionContext in project tomcat-cluster-redis-session-manager by ran-jit.
the class SessionManager method setValues.
/**
* @param sessionId
* @param session
*/
private void setValues(String sessionId, Session session) {
if (this.sessionContext.get() == null) {
this.sessionContext.set(new SessionContext());
}
this.sessionContext.get().setId(sessionId);
this.sessionContext.get().setSession(session);
}
use of tomcat.request.session.SessionContext in project tomcat-cluster-redis-session-manager by ran-jit.
the class SessionManager method setValues.
/**
* @param isPersisted
* @param metadata
*/
private void setValues(boolean isPersisted, SessionMetadata metadata) {
if (this.sessionContext.get() == null) {
this.sessionContext.set(new SessionContext());
}
this.sessionContext.get().setMetadata(metadata);
this.sessionContext.get().setPersisted(isPersisted);
}
Aggregations