mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
filter.h File Reference

Definition of http_filter class,related types and FILTER_EXPORT macro. More...

#include <servlet/request.h>
#include <servlet/response.h>
#include <servlet/context.h>

Go to the source code of this file.

Classes

class  servlet::http_filter
 A filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both. More...
 
class  servlet::filter_chain
 A filter_chain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource. More...
 

Macros

#define FILTER_EXPORT(factoryName, className)   extern "C" servlet::http_filter* factoryName() { return new className{}; }
 Macro to export the filter factory method to make a servlet available to mod_servlet container. More...
 

Detailed Description

Definition of http_filter class,related types and FILTER_EXPORT macro.

Macro Definition Documentation

#define FILTER_EXPORT (   factoryName,
  className 
)    extern "C" servlet::http_filter* factoryName() { return new className{}; }

Macro to export the filter factory method to make a servlet available to mod_servlet container.

For more details see documentation for servlet::http_filter.