public class SessionCounter extends Object implements ControllerListener
Constructor and Description |
---|
SessionCounter() |
Modifier and Type | Method and Description |
---|---|
void |
expireSession(javax.servlet.http.HttpSession session)
Called when a session expires.
|
int |
getActiveSessions() |
static SessionCounter |
getInstance() |
void |
initSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called when a new session is created.
|
public static SessionCounter getInstance()
public int getActiveSessions()
public void expireSession(javax.servlet.http.HttpSession session)
expireSession
in interface ControllerListener
session
- Description of the Parameterpublic void initSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
initSession
in interface ControllerListener
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servletCopyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.