Sun Java System Web Server 6.1 SP12 NSAPI Programmer's Guide

ProcedureTo create a custom filter

  1. Write the Source Code using the NSAPI functions.

  2. Compile and Link the source code to create a shared library ( .so, .sl, or .dll) file.

  3. Load and Initialize the Filter by editing the magnus.conf file.

  4. Instruct the Server to Insert the Filter by editing the obj.conf file to insert your custom filter(s) at the appropriate time.

  5. Restart the Server .

  6. Test the Filter by accessing your server from a browser with a URL that triggers your filter.

    These steps are described in greater detail in the following sections.