Sign In
Upload
Manuals
Brands
Netscape Manuals
Server
ENTERPRISE SERVER 6.1
Netscape ENTERPRISE SERVER 6.1 Manuals
Manuals and User Guides for Netscape ENTERPRISE SERVER 6.1. We have
2
Netscape ENTERPRISE SERVER 6.1 manuals available for free PDF download: Manual, Programmer's Manual
Netscape ENTERPRISE SERVER 6.1 Manual (373 pages)
NSAPI
Brand:
Netscape
| Category:
Server
| Size: 3.13 MB
Table of Contents
Table of Contents
3
About this Book
15
Where to Find Related Information
17
Chapter 1 Basics of Server Operation
19
Configuration Files
20
Magnus.conf
20
Server.xml
20
Obj.conf
21
Mime.types
21
Dynamic Reconfiguration
22
How the Server Handles Requests from Clients
22
HTTP Basics
22
Steps in the Request Handling Process
24
Directives for Handling Requests
25
Writing New Server Application Functions
25
Chapter 2 Syntax and Use of Obj.conf
27
Server Instructions in Obj.conf
27
Summary of the Directives
28
The <Object> Tag and the <Client> Tag
31
The Object Tag
31
Objects that Use the Name Attribute
32
Object that Use the Ppath Attribute
32
The Client Tag
33
Variables Defined in Server.xml
34
Flow of Control in Obj.conf
35
Authtrans
35
Nametrans
35
How the Server Knows to Process Other Objects
36
Pathcheck
37
Objecttype
38
Setting the Type by File Extension
38
Forcing the Type
39
Service
40
Service Examples
40
Default Service Directive
42
Addlog
43
Error
43
Syntax Rules for Editing Obj.conf
44
Order of Directives
44
Parameters
44
Case Sensitivity
44
Separators
45
Quotes
45
Spaces
45
Line Continuation
45
Path Names
45
Comments
45
About Obj.conf Directive Examples
46
Chapter 3 Predefined Safs and the Request Handling Process
47
The Bucket Parameter
49
Authtrans Stage
50
Basic-Auth
51
Basic-Ncsa
53
Get-Sslid
54
Qos-Handler
54
Nametrans Stage
55
Assign-Name
56
Document-Root
57
Home-Page
58
Pfx2Dir
59
Redirect
61
Strip-Params
63
Unix-Home
64
Pathcheck Stage
65
Check-Acl
65
Deny-Existence
66
Find-Index
67
Find-Links
67
Find-Pathinfo
68
Get-Client-Cert
69
Load-Config
70
Nt-Uri-Clean
73
Ntcgicheck
74
Require-Auth
74
Set-Virtual-Index
75
Ssl-Check
76
Ssl-Logout
77
Unix-Uri-Clean
77
Objecttype Stage
78
Force-Type
78
Set-Default-Type
79
Shtml-Hacktype
80
Type-By-Exp
81
Type-By-Extension
82
Service Stage
83
Add-Footer
86
Add-Header
87
Append-Trailer
88
Imagemap
89
Index-Common
90
Index-Simple
92
Key-Toosmall
93
List-Dir
94
Make-Dir
95
Query-Handler
95
Remove-Dir
96
Remove-File
97
Rename-File
98
Send-Cgi
99
Send-File
101
Send-Range
103
Send-Shellcgi
103
Send-Wincgi
104
Service-Dump
105
Shtml_Send
106
Stats-Xml
107
Upload-File
108
Addlog Stage
109
Common-Log
109
Flex-Log
110
Record-Useragent
111
Error Stage
112
Send-Error
112
Qos-Error
113
Chapter 4 Creating Custom Safs
115
The SAF Interface
116
SAF Parameters
116
Pb (Parameter Block)
116
Sn (Session)
117
Rq (Request)
117
Result Codes
119
Creating and Using Custom Safs
119
Write the Source Code
120
Compile and Link
121
Include Directory and Nsapi.h File
121
Libraries
121
Linker Commands and Options for Generating a Shared Object
122
Additional Linker Flags
122
Compiler Flags
123
Load and Initialize the SAF
124
Instruct the Server to Call the Safs
124
Reconfigure the Server
126
Test the SAF
126
Overview of NSAPI C Functions
127
Parameter Block Manipulation Routines
127
Protocol Utilities for Service Safs
128
Memory Management
128
File I/O
129
Network I/O
129
Threads
129
Enterprise Serverutilities
130
Virtual Server
131
Required Behavior of Safs for each Directive
131
Init Safs
132
Authtrans Safs
133
Nametrans Safs
134
Pathcheck Safs
134
Objecttype Safs
134
Service Safs
134
Error Safs
135
Addlog Safs
135
CGI to NSAPI Conversion
135
Chapter 5 NSAPI Function Reference
139
NSAPI Functions (in Alphabetical Order)
139
Calloc
140
Cinfo_Find
140
Condvar_Init
141
Condvar_Notify
142
Condvar_Terminate
142
Condvar_Wait
143
Crit_Enter
143
Crit_Exit
144
Crit_Init
144
Crit_Terminate
145
Daemon_Atrestart
145
Fc_Open
146
Fc_Close
147
Filebuf_Buf2Sd
147
Filebuf_Close
148
Filebuf_Getc
148
Filebuf_Open
149
Filebuf_Open_Nostat
149
Free
150
Func_Exec
151
Func_Find
151
Log_Error
152
Malloc
153
Net_Ip2Host
154
Net_Read
154
Net_Write
155
Netbuf_Buf2Sd
155
Netbuf_Close
156
Netbuf_Getc
156
Netbuf_Grab
157
Netbuf_Open
157
Param_Create
158
Param_Free
158
Pblock_Copy
159
Pblock_Create
159
Pblock_Dup
160
Pblock_Find
160
Pblock_Findval
161
Pblock_Free
161
Pblock_Nninsert
162
Pblock_Nvinsert
162
Pblock_Pb2Env
163
Pblock_Pblock2Str
163
Pblock_Pinsert
164
Pblock_Remove
165
Pblock_Str2Pblock
165
Perm_Calloc
166
Perm_Free
166
Perm_Malloc
167
Perm_Realloc
168
Perm_Strdup
168
Prepare_Nsapi_Thread
169
Protocol_Dump822
170
Protocol_Set_Finfo
170
Protocol_Start_Response
171
Protocol_Status
172
Protocol_Uri2Url
173
Protocol_Uri2Url_Dynamic
173
Realloc
174
Request_Get_Vs
175
Request_Header
175
Request_Stat_Path
176
Request_Translate_Uri
177
Session_Dns
177
Session_Maxdns
178
Shexp_Casecmp
179
Shexp_Cmp
179
Shexp_Match
180
Shexp_Valid
181
Strdup
181
System_Errmsg
182
System_Fclose
182
System_Flock
183
System_Fopenro
183
System_Fopenrw
184
System_Fopenwa
184
System_Fread
185
System_Fwrite
185
System_Fwrite_Atomic
186
System_Gmtime
187
System_Localtime
187
System_Lseek
188
System_Rename
189
System_Ulock
189
System_Unix2Local
189
Systhread_Attach
190
Systhread_Current
190
Systhread_Getdata
191
Systhread_Newkey
191
Systhread_Setdata
192
Systhread_Sleep
192
Systhread_Start
193
Systhread_Timerset
193
Util_Can_Exec
194
Util_Chdir2Path
194
Util_Chdir2Path
195
Util_Cookie_Find
195
Util_Env_Find
196
Util_Env_Free
196
Util_Env_Replace
197
Util_Env_Str
197
Util_Getline
198
Util_Hostname
198
Util_Is_Mozilla
199
Util_Is_Url
199
Util_Itoa
200
Util_Later_Than
200
Util_Sh_Escape
201
Util_Snprintf
201
Util_Sprintf
202
Util_Strcasecmp
202
Util_Strftime
203
Util_Strncasecmp
204
Util_Uri_Escape
204
Util_Uri_Is_Evil
205
Util_Uri_Parse
205
Util_Uri_Unescape
206
Util_Vsnprintf
206
Util_Vsprintf
207
Vs_Alloc_Slot
208
Vs_Get_Data
208
Vs_Get_Default_Httpd_Object
209
Vs_Get_Doc_Root
209
Vs_Get_Httpd_Objset
210
Vs_Get_Id
210
Vs_Get_Mime_Type
211
Vs_Lookup_Config_Var
211
Vs_Register_Cb
212
Vs_Set_Data
212
Vs_Translate_Uri
213
Chapter 6 Examples of Custom Safs
215
Examples in the Build
216
Authtrans Example
217
Installing the Example
217
Source Code
218
Nametrans Example
219
Installing the Example
220
Source Code
221
Pathcheck Example
223
Installing the Example
223
Source Code
224
Objecttype Example
226
Installing the Example
227
Source Code
227
Service Example
228
Installing the Example
229
Source Code
229
More Complex Service Example
231
Addlog Example
232
Installing the Example
232
Source Code
232
Quality of Service Examples
234
Installing the Example
234
Source Code
234
Chapter 7 Syntax and Use of Magnus.conf
241
Init Safs
242
Cindex-Init
243
Define-Perf-Bucket
245
Dns-Cache-Init
246
Flex-Init
246
Flex-Rotate-Init
251
Init-Cgi
253
Init-Clf
254
Init-Uhome
255
Load-Modules
255
Nt-Console-Init
256
Perf-Init
257
Pool-Init
257
Register-Http-Method
258
Stats-Init
260
Thread-Pool-Init
261
Server Information
262
Extrapath
262
Mtahost
263
Netsiteroot
263
Serverconfigurationfile
263
Serverid
263
Serverroot
263
Serverstring
264
Tempdir
264
Tempdirsecurity
264
User
265
Language Issues
265
Adminlanguage
266
Clientlanguage
266
Defaultcharset
266
Defaultlanguage
266
DNS Lookup
267
Asyncdns
267
Dns
267
Threads, Processes and Connections
268
Concurrency
269
Connqueuesize
269
Headerbuffersize
270
Iotimeout
270
Keepalivethreads
270
Keepalivetimeout
270
Kernelthreads
271
Listenq
271
Maxkeepaliveconnections
271
Maxprocs (UNIX Only)
271
Postthreadsearly
272
Rcvbufsize
272
Rqthrottle
272
Rqthrottlemin
273
Sndbufsize
273
Stacksize
273
Stricthttpheaders
273
Terminatetimeout
273
Threadincrement
274
Usenativepoll (UNIX Only)
274
Native Thread Pools
274
Nativepoolstacksize
275
Nativepoolmaxthreads
275
Nativepoolminthreads
275
Nativepoolqueuesize
275
Cgi
275
Cgiexpirationtimeout
276
Cgistubidletimeout
276
Cgiwaitpid (UNIX Only)
276
Maxcgistubs
277
Mincgistubs
277
Wincgitimeout
277
Error Logging and Statistic Collection
277
Errorlog
278
Errorlogdateformat
278
Logflushinterval
279
Logverbose
279
Logvsid
279
Pidlog
279
Statsupdateinterval
280
Acl
280
Aclcachelifetime
280
Aclusercachesize
281
Aclgroupcachesize
281
Security
281
Crlagecheck
282
Crlfile
282
Crlupdatecritical
284
Revocation
284
Security
284
Sslcacheentries
285
Sslclientauthdatalimit
285
Sslclientauthtimeout
285
Sslsessiontimeout
285
Ssl3Sessiontimeout
286
Chunked Encoding
286
Useoutputstreamsize
286
Chunkedrequestbuffersize
287
Chunkedrequesttimeout
287
Miscellaneous
288
Childrestartcallback
288
Httpversion
288
Maxrqheaders
288
Umask (UNIX Only)
289
Chapter 8 Virtual Server Configuration Files
291
The Server.dtd File
291
The Server.xml File
292
Variables
294
Format of a Variable
295
The ID Variable
295
Variables Used in the Interface
295
Variable Evaluation
296
Using the Server Manager and Class Manager
296
Elements in Server.dtd and Server.xml
297
Server
297
Vars
297
LS (Listen Socket)
298
Connectiongroup
299
Sslparams
300
Mime
301
Aclfile
303
Vsclass
303
VS (Virtual Server)
304
Qosparams
305
Userdb
306
Virtual Server Selection for Request Processing
306
User Database Selection
307
The Netscape LDAP Schema
308
The Convergence Tree
308
The Domain Component (DC)Tree
309
Appendix A Data Structure Reference
311
Privatization of some Data Structures
312
Session
312
Pblock
313
Pb_Entry
313
Pb_Param
314
Session->Client
314
Request
314
Stat
315
Shmem_S
316
Cinfo
316
Appendix B MIME Types
319
Introduction
319
Determining the MIME Type
320
How the Type Affects the Response
320
What Does the Client Do with the MIME Type
321
Syntax of the MIME Types File
322
Sample MIME Types File
322
Appendix C Wildcard Patterns
325
Wildcard Patterns
325
Wildcard Examples
326
Appendix D Time Formats
327
Appendix E Hypertext Transfer Protocol
329
Compliance
329
Requests
330
Request Method, URI, and Protocol Version
330
Request Headers
330
Request Data
331
Responses
331
HTTP Protocol Version, Status Code, and Reason Phrase
331
Response Headers
333
Response Data
333
Buffered Streams
334
Appendix F Dynamic Results Caching Functions
337
Dr_Cache_Destroy
338
Dr_Cache_Init
339
Dr_Cache_Refresh
339
Dr_Net_Write
340
Fc_Net_Write
342
Appendix G Alphabetical List of Directives in Magnus.conf
345
Appendix H Alphabetical List of Pre-Defined Safs
351
Index
357
Advertisement
Netscape ENTERPRISE SERVER 6.1 Programmer's Manual (130 pages)
Guide to Servlets
Brand:
Netscape
| Category:
Server
| Size: 1.01 MB
Table of Contents
Table of Contents
3
About this Book
7
Where to Find Related Information
8
Chapter 1 Servlets and Javaserver
11
Web Applications
11
Servlets
12
Javaserver Pages
12
Chapter 2 Web Applications
15
Web Application Structure
15
Dynamic Reconfiguration
16
Web.xml Clarifications
17
Login-Config
17
Security-Constraint
17
Session-Timeout
17
The Web-Apps.xml File and Virtual Servers
18
The Default Context for a Virtual Server
18
Example Server.xml File
18
Example Web-Apps.xml File
20
Web-Apps.xml Element Reference
21
Auth-Native
21
Class-Loader
22
Description
22
Form-Login-Session
22
Init-Param
23
Jsp-Servlet
23
Param-Name
24
Param-Value
24
Parameter-Encoding
24
Response-Buffer
26
Response-Cookie
26
Role-Mapping
26
Session-Cookie
27
Session-Manager
27
Session-Tracking
27
Tempdir
28
Web-App
28
Deploying a Web Application Using Wdeploy
29
Web Application Examples
31
Chapter 3 Using Servlets
33
What Does the Server Need to Run Servlets
33
Using the User Interface
34
Enabling Servlets
34
Making Servlets Available to Clients
34
The <SERVLET> SHTML Tag
35
Servlet Output
36
Configuring JVM
37
Maximizing Servlet Performance
37
Chapter 4 Using Javaserver
39
What Does the Server Need to Run JSP
39
Configuring JRE/JDK Paths
41
Using the User Interface
43
Enabling Jsps
44
Making Jsps Available to Clients
44
Deleting Cache Version Files
44
The JSP Command-Line Compiler
45
Package Names Generated by the JSP Compiler
48
Specifying that Jsps Are Precompiled
48
Other JSP Initialization Parameters
49
JSP Tag Libraries and Standard Portable Tags
49
Chapter 5 Debugging Servlets and Jsps
51
Servlet Debugging
51
JSP Debugging
52
Generating a Stack Trace for Debugging
53
JPDA Options for Debugging
54
Chapter 6 Session Managers
55
Session Overview
55
Specifying a Session Manager
56
Nessessionmanager
58
Parameters for Nessessionmanager
58
Enabling Nessessionmanager
61
Source Code for Nessessionmanager
62
Mmapsessionmanager (UNIX Only)
63
Parameters
63
Enabling Mmapsessionmanager
64
Deleting Sessiondata Version Files
65
Deprecated Session Managers
65
Simplesessionmanager
65
Jdbcsessionmanager
67
Load Balancing, Session Failover, and Session Ids
70
Chapter 7 API Clarifications
73
Clarification of Httpsession Scope
73
Clarifications for Using Methods
74
Httpservlet.service
74
Servletcontext.getattribute
75
Servletrequest.setattribute
75
Servletrequest.getparameter
75
Servletresponse.getoutputstream and Getwriter
77
Requestdispatcher.forward and Include
77
Other Useful Information
79
Database Connection Pooling
79
Fetching the Client Certificate
79
Chapter 8 Legacy Servlet and JSP Configuration
81
The Default Virtual Server
81
Enabling Servlets and JSP
82
Making Jsps Available to Clients
82
Configuring Servlets in the Default Virtual Server
82
Configuring Global Servlet Attributes
83
Registering Servlet Directories
83
Registering Individual Servlets
85
Specifying Servlet Virtual Paths
86
Specifying Servlet Contexts
88
Using the User Interface
88
Legacy Configuration Files
89
Servlets.properties
90
Rules.properties
91
Contexts.properties
92
Legacy Examples
96
Maximizing Legacy Servlet Performance
97
Appendix A Servlet Settings in Magnus.conf and Obj.conf
99
Init Directives in Magnus.conf
99
Objects in Obj.conf
100
Directives for Registered Servlet Directories
102
JSP Directives
102
Appendix B Converting SSJS Applications
103
Differences between Javascript and Java
103
Javascript to Java Class Conversions
105
Conversion Steps
106
Example Conversion
107
Appendix C JVM Configuration
109
The Jvm12.Conf File
110
Using JVM Environment Variables
111
Jvm12.Conf Parameter Reference
112
Appendix D Remote Servlet Profiling
117
The Optimizeit! Profiler
117
The HPROF Profiler
118
Index
123
Advertisement
Related Products
Netscape NETSCAPE ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS
Netscape NETSCAPE ENTERPRISE SERVER 6.1 - PROGRAMMER GUIDE TO SERVLETS
Netscape ENTERPRISE SERVER 6.0
Netscape NETSCAPE ENTREPRISE SERVER 6.0 - INSTALLATION AND MIGRATION GUIDE
Netscape NETSCAPE ENTREPRISE SERVER 6.1 - INSTALLATION AND MIGRATION GUIDE
Netscape NETSCAPE ENTREPRISE SERVER 6.0 - ADMINISTRATOR
Netscape ENTREPRISE SERVER 6.1
Netscape NETSCAPE CONSOLE 6.0 - MANAGING SERVERS
Netscape NETSCAPE DIRECTORY SERVER 6.0
Netscape NETSCAPE DIRECTORY SERVER 6.0 - DEPLOYMENT
Netscape Categories
Server
Software
Gateway
More Netscape Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL