Package org.jivesoftware.openfire.http
Interface SessionListener
-
public interface SessionListener
Listens for HTTP binding session events.- Author:
- Alexander Wenckus
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
connectionClosed(javax.servlet.AsyncContext context, HttpSession session, HttpConnection connection)
A connection was closed.default void
connectionOpened(javax.servlet.AsyncContext context, HttpSession session, HttpConnection connection)
A connection was opened.default void
postSessionCreated(javax.servlet.AsyncContext context, HttpSession session)
Called when anHttpSession
has been created for a given http-bind web requestdefault void
preSessionCreated(javax.servlet.AsyncContext context)
Called before anHttpSession
is created for a given http-bind web requestdefault void
sessionClosed(HttpSession session)
A session ended.
-
-
-
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 anHttpSession
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 anHttpSession
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.
-
-