View Javadoc

    1   //========================================================================
    2   //$Id: TestListener.java,v 1.1 2005/10/26 10:12:55 gregwilkins Exp $
    3   //Copyright 2004-2005 Mort Bay Consulting Pty. Ltd.
    4   //------------------------------------------------------------------------
    5   //Licensed under the Apache License, Version 2.0 (the "License");
    6   //you may not use this file except in compliance with the License.
    7   //You may obtain a copy of the License at
    8   //http://www.apache.org/licenses/LICENSE-2.0
    9   //Unless required by applicable law or agreed to in writing, software
    10  //distributed under the License is distributed on an "AS IS" BASIS,
    11  //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  //See the License for the specific language governing permissions and
    13  //limitations under the License.
    14  //========================================================================
    15
    16  package com.acme;
    17
    18  import javax.servlet.ServletContextAttributeEvent;
    19  import javax.servlet.ServletContextAttributeListener;
    20  import javax.servlet.ServletContextEvent;
    21  import javax.servlet.ServletContextListener;
    22  import javax.servlet.ServletRequestAttributeEvent;
    23  import javax.servlet.ServletRequestAttributeListener;
    24  import javax.servlet.ServletRequestEvent;
    25  import javax.servlet.ServletRequestListener;
    26  import javax.servlet.http.HttpSessionActivationListener;
    27  import javax.servlet.http.HttpSessionAttributeListener;
    28  import javax.servlet.http.HttpSessionBindingEvent;
    29  import javax.servlet.http.HttpSessionEvent;
    30  import javax.servlet.http.HttpSessionListener;
    31
    32  public class TestListener implements HttpSessionListener,  HttpSessionAttributeListener, HttpSessionActivationListener, ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener
    33  {
    34      public void attributeAdded(HttpSessionBindingEvent se)
    35      {
    36          // System.err.println("attributedAdded "+se);
    37      }
    38
    39      public void attributeRemoved(HttpSessionBindingEvent se)
    40      {
    41          // System.err.println("attributeRemoved "+se);
    42      }
    43
    44      public void attributeReplaced(HttpSessionBindingEvent se)
    45      {
    46          // System.err.println("attributeReplaced "+se);
    47      }
    48
    49      public void sessionWillPassivate(HttpSessionEvent se)
    50      {
    51          // System.err.println("sessionWillPassivate "+se);
    52      }
    53
    54      public void sessionDidActivate(HttpSessionEvent se)
    55      {
    56          // System.err.println("sessionDidActivate "+se);
    57      }
    58
    59      public void contextInitialized(ServletContextEvent sce)
    60      {
    61          // System.err.println("contextInitialized "+sce);
    62      }
    63
    64      public void contextDestroyed(ServletContextEvent sce)
    65      {
    66          // System.err.println("contextDestroyed "+sce);
    67      }
    68
    69      public void attributeAdded(ServletContextAttributeEvent scab)
    70      {
    71          // System.err.println("attributeAdded "+scab);
    72      }
    73
    74      public void attributeRemoved(ServletContextAttributeEvent scab)
    75      {
    76          // System.err.println("attributeRemoved "+scab);
    77      }
    78
    79      public void attributeReplaced(ServletContextAttributeEvent scab)
    80      {
    81          // System.err.println("attributeReplaced "+scab);
    82      }
    83
    84      public void requestDestroyed(ServletRequestEvent sre)
    85      {
    86          // System.err.println("requestDestroyed "+sre);
    87      }
    88
    89      public void requestInitialized(ServletRequestEvent sre)
    90      {
    91          // System.err.println("requestInitialized "+sre);
    92      }
    93
    94      public void attributeAdded(ServletRequestAttributeEvent srae)
    95      {
    96          // System.err.println("attributeAdded "+srae);
    97      }
    98
    99      public void attributeRemoved(ServletRequestAttributeEvent srae)
    100     {
    101         // System.err.println("attributeRemoved "+srae);
    102     }
    103
    104     public void attributeReplaced(ServletRequestAttributeEvent srae)
    105     {
    106         // System.err.println("attributeReplaced "+srae);
    107     }
    108
    109     public void sessionCreated(HttpSessionEvent se)
    110     {
    111         // System.err.println("sessionCreated "+se);
    112     }
    113
    114     public void sessionDestroyed(HttpSessionEvent se)
    115     {
    116         // System.err.println("sessionDestroyed "+se);
    117     }
    118
    119 }