1 /**
2 *
3 */
4 package de.tivsource.page.valve.security;
5
6 /**
7 * @author Marc Michele
8 *
9 */
10 public class RemoteAddressThreadLocal {
11
12 private static final ThreadLocal<String> threadLocal = new ThreadLocal<String>();
13
14 public static void setKey(String key) {
15 threadLocal.set(key);
16 }
17
18 public static String getKey() {
19 return (String)threadLocal.get();
20 }
21
22 public static void clear() {
23 threadLocal.remove();
24 }
25
26 }// Ende class