Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 122

Nsapi
Table of Contents

Advertisement

Creating and Using Custom SAFs
For example, if you define a new
an appropriate directive in the default object. However, if you define a new
Service
directory or has a new kind of file extension, you would need to take extra steps.
If your new Service SAF is to be invoked only when the requested resource has a
new kind of file extension, you might need to add an entry to the MIME types file
so that the
could add a
value.
If your new
particular directory, you might need to define a
a
name
could invoke the new
For example, suppose your plugin defines two new SAFs,
do_big_anim()
animations. All files to be treated as small animations reside in the directory
D:/netscape/server4/docs/animations/small
full screen animations reside in the directory
D:/netscape/server4/docs/animations/fullscreen
To ensure that the new animation functions are invoked whenever a client sends a
request for either a small or full screen animation, you would add
directives to the default object to translate the appropriate URLs to the
corresponding pathnames and also assign a name to the request.
NameTrans fn=pfx2dir from="/animations/small"
dir="D:/netscape/server4/docs/animations/small" name="small_anim"
NameTrans fn=pfx2dir from="/animations/fullscreen"
dir="D:/netscape/server4/docs/animations/fullscreen"
name="fullscreen_anim"
You also need to define objects that contain the
animations and specify the
122
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
SAF to be invoked only when the requested resource is in a particular
value gets set properly during the
type
directive to the default object that specifies the desired
Service
SAF is to be invoked only when the requested resource is in a
Service
or
value that matches another object, and then in the new object you
ppath
Service
which both take
speed
or
AuthTrans
PathCheck
ObjectType
NameTrans
function.
parameters. These functions run
speed
, while all files to be treated as
Service
parameter.
SAF you could just add
stage. Then you
type
directive that generates
do_small_anim()
.
NameTrans
directives that run the
and

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents