1 17 18 19 package org.apache.catalina; 20 21 22 import java.util.EventObject ; 23 24 25 31 32 public final class SessionEvent 33 extends EventObject { 34 35 36 39 private Object data = null; 40 41 42 45 private Session session = null; 46 47 48 51 private String type = null; 52 53 54 61 public SessionEvent(Session session, String type, Object data) { 62 63 super(session); 64 this.session = session; 65 this.type = type; 66 this.data = data; 67 68 } 69 70 71 74 public Object getData() { 75 76 return (this.data); 77 78 } 79 80 81 84 public Session getSession() { 85 86 return (this.session); 87 88 } 89 90 91 94 public String getType() { 95 96 return (this.type); 97 98 } 99 100 101 104 public String toString() { 105 106 return ("SessionEvent['" + getSession() + "','" + 107 getType() + "']"); 108 109 } 110 111 112 } 113 | Popular Tags |