blob: 3d04bbb027b1b6ccac12ad73c3c0d6d9ba533d4f [file] [log] [blame]
/*=========================================================================
* Copyright (c) 2010-2014 Pivotal Software, Inc. All Rights Reserved.
* This product is protected by U.S. and international copyright
* and intellectual property laws. Pivotal products are covered by
* one or more patents listed at http://www.pivotal.io/patents.
*=========================================================================
*/
package com.gemstone.gemfire.modules.session.filter.util;
import javax.servlet.http.HttpSession;
/**
*/
public class ThreadLocalSession {
private static ThreadLocal<HttpSession> threadLocal =
new ThreadLocal<HttpSession>();
public static HttpSession get() {
return threadLocal.get();
}
public static void set(HttpSession session) {
threadLocal.set(session);
}
public static void remove() {
threadLocal.remove();
}
}