![Netscape ENTERPRISE SERVER 6.1 Скачать руководство пользователя страница 42](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653042.webp)
Flow of Control in obj.conf
42
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
•
The
ServletByExt
object has no
PathCheck
directives, so the server processes
the
PathCheck
directives in the default object. Let’s assume that all
PathCheck
directives succeed.
•
Next, the server processes the
ObjectType
directives, starting with the one in
the
ServletByExt
object. This directive sets the
type
attribute to
magnus-internal/servlet
.
ObjectType fn="force-type" type="magnus-internal/servlet"
The server continues processing all the
ObjectType
directives in the default
object, but since the
type
attribute is already set its value cannot be changed.
•
When processing
Service
directives, the server starts by considering the
Service
directive in the
ServletByExt
object which is:
Service type="magnus-internal/servlet" fn="NSServletService"
•
The
type
argument of this directive matches the
type
value that was set by the
ObjectType
directive. So the server goes ahead and executes this
Service
directive which calls the
NSServletService
function. This function invokes
the requested file as a servlet and sends the output from the servlet as the
response to the client. (If the requested resource is not a servlet, an error
occurs.)
Since a
Service
directive has now been executed, the server does not process
any other
Service
directives. (However, if the matching object had not had a
Service
directive that was executed, the server would continue looking at
Service
directives in the default object.)
Default Service Directive
There is usually a
Service
directive that does the default thing (sends a file) if no
other
Service
directive matches a request sent by a browser. This default directive
should come last in the list of
Service
directives in the default object, to ensure it
only gets called if no other
Service
directives have succeeded. The default
Service
directive is usually:
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*"
fn="send-file"
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...