use of tomcat.request.session.model.SessionContext in project tomcat-cluster-redis-session-manager by ran-jit.
the class SessionManager method setValues.
/**
* To set values to session context.
*/
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.model.SessionContext in project tomcat-cluster-redis-session-manager by ran-jit.
the class SessionManager method setValues.
/**
* To set values to session context.
*/
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