Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rwsf::Filter

Package:  Servlet


Base Class

Local Index

Members

Non-Members

Header File

#include <rwsf/servlet/Filter.h>

Description

rwsf::Filter is the base class for filters. A filter processes the requests and responses for a resource. For example, a filter might compress or encode the response from a Web Service, transform an XML response into HTML, or adapt an incoming request.

The Agent loads filters during initialization. Each rwsf::Filter contains an rwsf::FilterConfig that holds the initialization parameters for the filter. The rwsf::FilterConfig object also provides access to the rwsf::ServletContext object that represents the context within which the filter is deployed.

Public Member Functions

virtual void
destroy();
virtual void
doFilter(rwsf::ServletRequest& request,
         rwsf::ServletResponse& response,
         rwsf::FilterChain* chain) = 0;
virtual rwsf::FilterConfig
getFilterConfig() const;
virtual void 
init(const rwsf::FilterConfig& config);

Related Global Macros

rwsf_DEFINE_FILTER(filterName)
rwsf_DEFINE_FILTER_NAME(filterName, createMethod)

See Also

rwsf::FilterChain

rwsf::FilterConfig



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.