Top Description Fields Constructors Methods
org.apache.catalina

public final Class SessionEvent

extends EventObject
Class Inheritance
Imports
java.util.EventObject

General event for notifying listeners of significant changes on a Session.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private final Object
data

The event data associated with this event.

private static final long
private final Session
session

The Session on which this event occurred.

private final String
type

The event type this instance represents.

Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
SessionEvent(Session
Session on which this event occurred
session
,
String
Event type
type
,
Object
Event data
data
)

Construct a new SessionEvent with the specified parameters.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the event data of this event.
getData
()

public Session

Returns:

the Session on which this event occurred.
getSession
()

public String

Returns:

the event type of this event.
getType
()

public String
toString()

Overrides java.util.EventObject.toString.

Returns a String representation of this EventObject.

Inherited from java.util.EventObject:
getSource

Field Detail

databack to summary
private final Object data

The event data associated with this event.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

sessionback to summary
private final Session session

The Session on which this event occurred.

typeback to summary
private final String type

The event type this instance represents.

Constructor Detail

SessionEventback to summary
public SessionEvent(Session session, String type, Object data)

Construct a new SessionEvent with the specified parameters.

Parameters
session:Session

Session on which this event occurred

type:String

Event type

data:Object

Event data

Method Detail

getDataback to summary
public Object getData()
Returns:Object

the event data of this event.

getSessionback to summary
public Session getSession()
Returns:Session

the Session on which this event occurred.

getTypeback to summary
public String getType()
Returns:String

the event type of this event.

toStringback to summary
public String toString()

Overrides java.util.EventObject.toString.

Doc from java.util.EventObject.toString.

Returns a String representation of this EventObject.

Returns:String

a String representation of this EventObject

Annotations
@Override