Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

nsapi_module_init() Function

Defines the nsapi_module_init function, which is a module initialization entry point that enables a plug-in to create filters when it is loaded. When an NSAPI module contains an nsapi_module_init function, the server will call that function immediately after loading the module. The nsapi_module_init presents the same interface as an Init SAF, and it must follow the same rules.

Use the nsapi_module_init function to register SAFs with func_insert, create filters with filter_create, register virtual server initialization/destruction callbacks with vs_register_cb, and perform other initialization tasks.


int nsapi_module_init(pblock *pb, Session *sn, Request *rq);

Return Values

REQ_PROCEED on success, or REQ_ABORTED on error.


pblock *pb is a set of parameters specified by the fn="load-modules" directive.

Session *sn (the session) is NULL.

Request *rq (the request) is NULL.

See Also

filter_create() Function, func_insert() Function, vs_register_cb() Function