ru.concerteza.springtomcat.components.holder.SessionHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etomcat-components Show documentation
Show all versions of etomcat-components Show documentation
Additional components for Apache Tomcat
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