6.2.1.3 Module Initialization

The module initialize function is called before each servlet request is processed. This function initializes the plugin module that will be seen within the servlet. Create a function with the following signature:

initialize( mod, req)
mod and req represent the module object and the apache request object respectively. The module object is an empty module with the name of the plugin to be initialized, if necessary, with all the properties and methods you will require to expose to servlets. The request object is defined in the mod_python documentation, provided to allow your plugin to interact with the apache request.

If the module does not contain an initialize function, then the plugin will not be loaded.