Package org.apache.catalina
Class SessionEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.catalina.SessionEvent
-
- All Implemented Interfaces:
java.io.Serializable
public final class SessionEvent extends java.util.EventObjectGeneral event for notifying listeners of significant changes on a Session.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionEvent(Session session, java.lang.String type, java.lang.Object data)Construct a new SessionEvent with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetData()Returns the event data of this event.SessiongetSession()Returns the Session on which this event occurred.java.lang.StringgetType()Returns the event type of this event.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SessionEvent
public SessionEvent(Session session, java.lang.String type, java.lang.Object data)
Construct a new SessionEvent with the specified parameters.- Parameters:
session- Session on which this event occurredtype- Event typedata- Event data
-
-
Method Detail
-
getData
public java.lang.Object getData()
Returns the event data of this event.- Returns:
- the event data
-
getSession
public Session getSession()
Returns the Session on which this event occurred.- Returns:
- the session
-
getType
public java.lang.String getType()
Returns the event type of this event.- Returns:
- the event type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.EventObject
-
-