WsSessionListener (Apache Tomcat 9.0.117 API Documentation)
Description: declaration: package: org.apache.tomcat.websocket.server, class: WsSessionListener

# Class WsSessionListener

java.lang.Object
org.apache.tomcat.websocket.server.WsSessionListener

All Implemented Interfaces:
  `EventListener, HttpSessionListener`

public class WsSessionListener extends Object implements HttpSessionListener

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WsSessionListener(WsServerContainer wsServerContainer)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `sessionDestroyed(HttpSessionEvent se)`
  Notification that a session is about to be invalidated.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface HttpSessionListener

  `sessionCreated`

- ## Constructor Details

  - ### WsSessionListener

    public WsSessionListener(WsServerContainer wsServerContainer)

- ## Method Details

  - ### sessionDestroyed

    public void sessionDestroyed(HttpSessionEvent se)
    Description copied from interface: `javax.servlet.http.HttpSessionListener`
    Notification that a session is about to be invalidated. The default implementation is a NO-OP.
    Specified by:
      `sessionDestroyed` in interface `HttpSessionListener`
    Parameters:
      `se` - the notification event