Example usage for javax.servlet.http HttpSessionEvent getSource

List of usage examples for javax.servlet.http HttpSessionEvent getSource

Introduction

In this page you can find the example usage for javax.servlet.http HttpSessionEvent getSource.

Prototype

public Object getSource() 

Source Link

Document

The object on which the Event initially occurred.

Usage

From source file:org.sakaiproject.metaobj.shared.control.SessionListener.java

public void sessionCreated(HttpSessionEvent event) {
    // TODO Auto-generated method stub
    //Enumeration foo = event.getSession();
    logger.warn("SessionListener create - " + event.getSource());
    try {//from www  . jav a  2s .c o m
        throw new Exception();
    } catch (Exception e) {
        e.printStackTrace();
    }
}

From source file:org.sakaiproject.metaobj.shared.control.SessionListener.java

public void sessionDestroyed(HttpSessionEvent event) {
    // TODO Auto-generated method stub
    logger.warn("SessionListener destroy - " + event.getSource());
    try {/*from  w  ww .  j a  v  a 2  s . c  om*/
        throw new Exception();
    } catch (Exception e) {
        e.printStackTrace();
    }
}