Interface SessionListener


  • public interface SessionListener
    Listens for HTTP binding session events.
    Author:
    Alexander Wenckus
    • Method Detail

      • connectionOpened

        default void connectionOpened​(javax.servlet.AsyncContext context,
                                      HttpSession session,
                                      HttpConnection connection)
        A connection was opened.
        Parameters:
        context - The servlet context of the BOSH request that triggered this event.
        session - the session for which a new connection was opened.
        connection - the connection that was just opened.
      • connectionClosed

        default void connectionClosed​(javax.servlet.AsyncContext context,
                                      HttpSession session,
                                      HttpConnection connection)
        A connection was closed.
        Parameters:
        context - The servlet servlet context of the BOSH request that triggered this event.
        session - The session of which a connection was closed.
        connection - the connection that was closed.
      • preSessionCreated

        default void preSessionCreated​(javax.servlet.AsyncContext context)
        Called before an HttpSession is created for a given http-bind web request
        Parameters:
        context - The servlet servlet context of the BOSH request that triggered this event.
      • postSessionCreated

        default void postSessionCreated​(javax.servlet.AsyncContext context,
                                        HttpSession session)
        Called when an HttpSession has been created for a given http-bind web request
        Parameters:
        context - The servlet servlet context of the BOSH request that triggered this event.
        session - The newly created session.
      • sessionClosed

        default void sessionClosed​(HttpSession session)
        A session ended.
        Parameters:
        session - the session that was closed.