HydraExpress™ C++ API Reference Guide

 
Loading...
Searching...
No Matches
rwsf::FilterConfig Class Reference

Holds configuration information from the deployment descriptor. More...

#include <rwsf/servlet/FilterConfig.h>

Inheritance diagram for rwsf::FilterConfig:
rwsf::Config rwsf::HandleBase

Public Member Functions

 FilterConfig ()
 FilterConfig (const FilterConfig &config)
virtual ~FilterConfig ()
std::string getFilterName () const
rwsf::ServletContext getServletContext () const
FilterConfigoperator= (const FilterConfig &second)
Public Member Functions inherited from rwsf::Config
 Config ()
 Config (const Config &config)
virtual ~Config ()
bool containsParameter (const std::string &name) const
bool getBoolInitParameter (const std::string &key, bool def=false) const
std::string getInitParameter (const std::string &name) const
rwsf::Enumeration< std::string > getInitParameterNames () const
long getLongInitParameter (const std::string &key, long def=0) const
Configoperator= (const Config &rhs)
void setBoolInitParameter (const std::string &key, bool value)
void setInitParameter (const std::string &key, const std::string &value)
void setLongInitParameter (const std::string &key, long value)
Public Member Functions inherited from rwsf::HandleBase
bool isValid (void) const
bool operator!= (const HandleBase &second) const
bool operator== (const HandleBase &second) const

Additional Inherited Members

Protected Member Functions inherited from rwsf::HandleBase
 HandleBase (BodyBase *body)
 HandleBase (const HandleBase &second)
 HandleBase (StaticCtor)
 HandleBase (void)
virtual ~HandleBase (void)
BodyBase & body (void) const
HandleBaseoperator= (const HandleBase &second)

Detailed Description

rwsf::FilterConfig contains the configuration information provided in the deployment descriptor of a given filter. After a filter is initialized, the filter accesses configuration information by using the method rwsf::Filter::getFilterConfig(). This class provides a function that returns the filter name, and inherits functions for working with initialization parameters and the filter context.

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

getInitParameter(std::string) In the HydraExpress implementation, this method inherits from base class rwsf::Config
getInitParameterNames() In the HydraExpress implementation, this method inherits from base class rwsf::Config

Constructor & Destructor Documentation

◆ FilterConfig() [1/2]

rwsf::FilterConfig::FilterConfig ( )

Creates an empty, invalid instance. Use the assignment operator or copy constructor to create a valid instance.

◆ FilterConfig() [2/2]

rwsf::FilterConfig::FilterConfig ( const FilterConfig & config)

Creates a new FilterConfig handle to the config body instance.

◆ ~FilterConfig()

virtual rwsf::FilterConfig::~FilterConfig ( )
virtual

Detaches from the current body (if any), decrements its reference count, and deletes it if there are no other references.

Member Function Documentation

◆ getFilterName()

std::string rwsf::FilterConfig::getFilterName ( ) const

Returns the name of this filter as defined by the filter-name element of the deployment descriptor.

◆ getServletContext()

rwsf::ServletContext rwsf::FilterConfig::getServletContext ( ) const

Returns the servlet context for this object.

◆ operator=()

FilterConfig & rwsf::FilterConfig::operator= ( const FilterConfig & second)

Associates this handle with the body instance of second. Returns a reference to self.

Copyright © 2026 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.