1 22 package org.jboss.test.cluster.web; 23 24 import java.io.Serializable ; 25 import javax.servlet.http.HttpSessionBindingListener ; 26 27 31 public class BindingListener implements HttpSessionBindingListener , Serializable { 32 private boolean isValueBound = false; 33 private boolean isValueUnBound = false; 34 35 36 public BindingListener() { 37 } 38 39 public void valueBound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent) { 40 setValueBound(); 41 } 42 43 public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent httpSessionBindingEvent) { 44 setValueUnBound(); 45 } 46 47 public void setValueBound() { isValueBound = true; } 48 public boolean getValueBound() { return isValueBound; } 49 public void setValueUnBound() { isValueUnBound = true; } 50 public boolean getValueUnBound() { return isValueUnBound; } 51 } 52 | Popular Tags |