com.sapportals.portal.prt.session

Class HttpSessionHandler

java.lang.Object
  extended by com.sapportals.portal.prt.session.HttpSessionHandler
All Implemented Interfaces:
EventListener, HttpSessionListener

public class HttpSessionHandler
extends Object
implements HttpSessionListener

Maintain a list of session listeners for each session


Constructor Summary
HttpSessionHandler()
           
 
Method Summary
 void registerHttpSessionDestructionListener(HttpSession session, IHttpSessionDestructionListener listener)
          Register a session listener for a session
 void registerHttpSessionDestructionListener(IHttpSessionDestructionListener listener)
          Register an http session destruction listener that will be called by all the session
 void sessionCreated(HttpSessionEvent se)
           
 void sessionDestroyed(HttpSessionEvent se)
           
static HttpSessionHandler sharedInstance()
           
 void unRegisterHttpSessionDestructionListener(HttpSession session, IHttpSessionDestructionListener listener)
          Unregister an http session listener for a specific session Note : It is not mandatory to unregister since the unregistration is performed automatically when the session is destroyed
 void unRegisterHttpSessionDestructionListener(IHttpSessionDestructionListener listener)
          Unregister an http session destruction listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionHandler

public HttpSessionHandler()
Method Detail

sharedInstance

public static HttpSessionHandler sharedInstance()

registerHttpSessionDestructionListener

public void registerHttpSessionDestructionListener(IHttpSessionDestructionListener listener)
Register an http session destruction listener that will be called by all the session


unRegisterHttpSessionDestructionListener

public void unRegisterHttpSessionDestructionListener(IHttpSessionDestructionListener listener)
Unregister an http session destruction listener


registerHttpSessionDestructionListener

public void registerHttpSessionDestructionListener(HttpSession session,
                                                   IHttpSessionDestructionListener listener)
Register a session listener for a session


unRegisterHttpSessionDestructionListener

public void unRegisterHttpSessionDestructionListener(HttpSession session,
                                                     IHttpSessionDestructionListener listener)
Unregister an http session listener for a specific session Note : It is not mandatory to unregister since the unregistration is performed automatically when the session is destroyed


sessionCreated

public void sessionCreated(HttpSessionEvent se)
Specified by:
sessionCreated in interface HttpSessionListener

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent se)
Specified by:
sessionDestroyed in interface HttpSessionListener
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/api api EP-PIN
[sap.com] EP-BASIS-API [sap.com] tc/epbc/prt/lib/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice