1 4 package javax.servlet.http; 5 6 public class MockSessionBindingListener implements HttpSessionBindingListener { 7 8 private String lastEventName = null; 9 private HttpSessionBindingEvent lastEvent; 10 11 public HttpSessionBindingEvent getLastEvent() { 12 return lastEvent; 13 } 14 15 public String getLastEventName() { 16 return lastEventName; 17 } 18 19 public void valueBound(HttpSessionBindingEvent arg0) { 20 lastEventName = "valueBound"; 21 this.lastEvent = arg0; 22 } 23 24 public void valueUnbound(HttpSessionBindingEvent arg0) { 25 lastEventName = "valueUnbound"; 26 this.lastEvent = arg0; 27 } 28 29 public void clear() { 30 this.lastEvent = null; 31 this.lastEventName = null; 32 } 33 34 } 35 | Popular Tags |