rwlogo
HydraExpress 4.6

HydraExpress C++ API Reference Guide


   


Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::HttpSessionListener Class Reference
[Servlet]

Base class for listeners that receive HTTP session event notifications. Derive from this class to create a listener. More...

#include <rwsf/servlet/http/HttpSessionListener.h>

Inheritance diagram for rwsf::HttpSessionListener:
rwsf::EventListener

List of all members.

Public Member Functions

virtual ~HttpSessionListener ()
virtual void sessionCreated (const rwsf::HttpSessionEvent &event)
virtual void sessionDestroyed (const rwsf::HttpSessionEvent &event)
virtual void attributeAdded (const rwsf::HttpSessionBindingEvent &se)
virtual void attributeRemoved (const rwsf::HttpSessionBindingEvent &se)
virtual void attributeReplaced (const rwsf::HttpSessionBindingEvent &se)

Detailed Description

rwsf::HttpSessionListener is a base class for listeners that receive notification of HTTP session events. To create a listener, derive from this class and override the functions that receive the events of interest. To register a listener, include a deployment descriptor for the listener class in the configuration file of the context. For more information on deployment descriptors and contexts see the Servlet Development Guide.

The behavior of the following functions are inconsistent with or not defined in the Java Servlet Specification v2.3.

attributeAdded() Added method.
attributeRemoved() Added method.
attributeReplaced() Added method.
valueBound(), valueUnbound() These methods from the HttpSessionBindingListener have been replaced by attributeReplaced(), attributeAdded(), and attributeRemoved().

Constructor & Destructor Documentation

virtual rwsf::HttpSessionListener::~HttpSessionListener (  )  [virtual]

Destructor.


Member Function Documentation

virtual void rwsf::HttpSessionListener::attributeAdded ( const rwsf::HttpSessionBindingEvent se  )  [virtual]

Receives an event when a session adds an attribute.

virtual void rwsf::HttpSessionListener::attributeRemoved ( const rwsf::HttpSessionBindingEvent se  )  [virtual]

Receives an event when a session removes an attribute.

virtual void rwsf::HttpSessionListener::attributeReplaced ( const rwsf::HttpSessionBindingEvent se  )  [virtual]

Receives an event when a session replaces an attribute.

virtual void rwsf::HttpSessionListener::sessionCreated ( const rwsf::HttpSessionEvent event  )  [virtual]

Receives an event when the Agent creates a session.

virtual void rwsf::HttpSessionListener::sessionDestroyed ( const rwsf::HttpSessionEvent event  )  [virtual]

Receives an event when the Agent destroys a session.


Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.