All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.concerteza.springtomcat.components.holder.SessionHolder Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
package ru.concerteza.springtomcat.components.holder;

import javax.servlet.http.HttpSession;

/**
 * User: alexey
 * Date: 11/4/11
 */
public class SessionHolder {
    private final ThreadLocal threadLocal = new ThreadLocal();

    public void set(HttpSession session) {
        threadLocal.set(session);
    }

    public HttpSession get() {
        return threadLocal.get();
    }

    public void remove() {
        threadLocal.remove();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy