Search in sources :

Example 1 with SessionContext

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);
}
Also used : SessionContext(tomcat.request.session.model.SessionContext)

Example 2 with SessionContext

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);
}
Also used : SessionContext(tomcat.request.session.model.SessionContext)

Aggregations

SessionContext (tomcat.request.session.model.SessionContext)2