HydraExpress™ C++ API Reference Guide

Product Documentation:
   HydraExpress C++
Documentation Home
List of all members | Public Member Functions
rwsf::HttpSessionListener Class Reference

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

Public Member Functions

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

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 © 2020 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is registered trademark of Rogue Wave Software, Inc. in the United States and other countries, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.