1 19 20 package com.sslexplorer.reverseproxy; 21 22 import java.util.HashMap ; 23 24 import javax.servlet.http.HttpSessionBindingEvent ; 25 import javax.servlet.http.HttpSessionBindingListener ; 26 27 import com.maverick.http.HttpClient; 28 29 39 public class SessionClients extends HashMap <String , HttpClient> implements HttpSessionBindingListener { 40 41 public void valueBound(HttpSessionBindingEvent arg0) { 42 } 43 44 public void valueUnbound(HttpSessionBindingEvent arg0) { 45 for (HttpClient client : values()) { 46 client.close(); 47 } 48 } 49 50 } | Popular Tags |