Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual page 38

Nsapi
Table of Contents

Advertisement

Flow of Control in obj.conf
The following
MIME type in the MIME types table:
ObjectType fn="type-by-extension"
The server finds the following entry in the MIME types table, which sets the
type attribute to
type=text/html exts=htm,html
The server invokes the following
parameter matches anything that does not begin with
a list of all wildcard patterns, see Appendix C, "Wildcard Patterns.") This
directive sends the requested file,
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*"
fn="send-file""
For an example that involves using another object, consider what happens
when the server receives a request for
http://
that servlets have been activated and the directory
D://netscape/server4/docs/servlet/
directory (that is, the server treats all files in that directory as servlets).
The following
D:netscape/Server4/docs/servlet/doCalculation.class
also assigns the name
NameTrans fn="pfx2dir" from="/servlet"
dir="D:/Netscape/Server4/docs/servlet" name="ServletByExt"
As a result of the
directives in the object named
<Object name="ServletByExt">
ObjectType fn="force-type" type="magnus-internal/servlet"
Service type="magnus-internal/servlet" fn="NSServletService"
</Object>
38
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
directive tells the server to look up the resource's
ObjectType
:
text/html
server_name
/servlet/doCalculation.class
directive translates the requested URL to
NameTrans
ServletByExt
assignment, the server switches to processing the
name
directive. The value of the
Service
, to the client.
jos.html
has been registered as a servlet
to the request.
. This object is defined as:
ServletByExt
type
. (For
magnus-internal/
. This example assumes
. This directive

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents