Top Description Fields Constructors Methods
jakarta.servlet.http

public Class HttpSessionEvent

extends EventObject
Class Inheritance
Known Direct Subclasses
jakarta.servlet.http.HttpSessionBindingEvent

This is the class representing event notifications for changes to sessions within a web application.
Since
Servlet 2.3

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from java.util.EventObject:
source

Constructor Summary

AccessConstructor and Description
public
HttpSessionEvent(HttpSession
The HTTP session where the change took place
source
)

Construct a session event from the given source.

Method Summary

Modifier and TypeMethod and Description
public HttpSession

Returns:

The session that changed
getSession
()

Get the session that changed.

Inherited from java.util.EventObject:
getSourcetoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.util.EventObject.serialVersionUID.

Constructor Detail

HttpSessionEventback to summary
public HttpSessionEvent(HttpSession source)

Construct a session event from the given source.

Parameters
source:HttpSession

The HTTP session where the change took place

Method Detail

getSessionback to summary
public HttpSession getSession()

Get the session that changed.

Returns:HttpSession

The session that changed