Sun Java System Web Server 7.0 NSAPI Developer's Guide

Installing the ObjectType Example

To load the shared object containing your function, add the following line in the Init section of the magnus.conf file:

Init fn=load-modules
     shlib="path" 
     funcs=html2shtml

To execute the custom SAF during the request-response process for some object, add the following line to that object in the obj.conf file:

ObjectType fn=html2shtml

The source code for this example is in otype.c in the install_dir/samples/nsapi/ directory.