IBCLIB.PDF

(2247 KB) Pobierz
C
ONTENTS
1
CLARION 5
Internet
Builder Class
Reference
COPYRIGHT 1997, 1998 by TopSpeed Corporation
All rights reserved.
This publication is protected by copyright and all rights are reserved by TopSpeed Corporation.
It may not, in whole or part, be copied, photocopied, reproduced, translated, or reduced to any
electronic medium or machine-readable form without prior consent, in writing, from TopSpeed
Corporation.
This publication supports Clarion Internet Connect. It is possible that it may contain technical
or typographical errors. TopSpeed Corporation provides this publication “as is,” without
warranty of any kind, either expressed or implied.
TopSpeed Corporation
150 East Sample Road
Pompano Beach, Florida 33064
(954) 785-4555
Trademark Acknowledgements:
TopSpeed
®
is a registered trademark of TopSpeed Corporation.
Btrieve
®
is a registered trademark of Pervasive Software.
Microsoft
®
Windows
®
and Visual Basic
®
are registered trademarks of Microsoft Corporation.
All other products and company names are trademarks of their respective owners.
Printed in the United States of America (0298)
C
ONTENTS
3
C
ONTENTS
S
UMMARY
F
OREWORD
I
NTRODUCTION
B
ROKER
C
LASS
W
EB
S
ERVER
C
LASSES
W
EB
C
LIENT
M
ANAGER
C
LASS
B
ROWSER
M
ANAGER
C
LASS
W
EB
F
RAME
C
LASS
W
EB
W
INDOW
C
LASSES
W
EB
C
ONTROL
C
LASS
W
EB
C
ONTROL
C
LASS
D
ERIVED
C
LASSES
W
EB
A
REA
C
LASSES
W
EB
R
EPORT
C
LASS
JSL M
ANAGER
C
LASS
JSL E
VENTS
C
LASS
W
EB
F
ILES
C
LASS
L
AYOUT
H
TML
C
LASS
S
UBMIT
I
TEM
C
LASS
H
TML
C
LASS
T
EXT
O
UTPUT
C
LASS
H
TTP
C
LASSES
I
NDEX
27
29
39
61
91
107
115
127
217
263
407
441
449
475
487
507
519
525
569
579
621
4
CLARION 5
IBC L
IBRARY
R
EFERENCE
C
ONTENTS
F
OREWORD
I
NTRODUCTION
27
29
About This Book
30
Clarion Internet Builder Classes
31
Class Libraries Generally ..................................................................................... 31
Internet Builder Classes—The IBC Library ......................................................... 31
Using the IBC Library .......................................................................................... 32
Internet Connect Terms and Concepts .................................................................. 32
Internet Builder Class Synopsis............................................................................ 35
Internet Builder Class Header Files...................................................................... 36
Internet Connect Templates and the IBC Library ................................................. 36
Documentation Conventions
37
Reference Item Formats and Syntax Diagrams .................................................... 37
Property (short description of intended use) ........................................................ 37
Method (short description of what the method does) ........................................... 38
B
ROKER
C
LASS
39
Overview
41
BrokerClass Concepts .......................................................................................... 41
Relationship to Other Internet Builder Classes .................................................... 41
Internet Connect Template Implementation ......................................................... 42
Source Files .......................................................................................................... 42
Conceptual Example ............................................................................................. 43
BrokerClass Properties
44
Client (WebClientManagerClass object) .............................................................. 44
Http (HttpClass object) ......................................................................................... 44
Files (WebFilesClass object) ................................................................................ 45
ServerName (server identifier) ............................................................................. 45
BrokerClass Methods
46
Functional Organization—Expected Use ............................................................. 46
CloseChannel (close channel to application broker) ............................................ 47
GetAuthorizedInfo (get client password) ............................................................. 48
GetClient (return WebClientManagerClass object) .............................................. 49
C
ONTENTS
5
GetRequestArguments (return browser request) .................................................. 50
Init (initialize the BrokerClass object) ................................................................. 51
Kill (shut down the BrokerClass object) .............................................................. 52
OpenChannel (open channel to application broker) ............................................. 53
ProcessHttpHeader (process incoming http) ........................................................ 54
SetClient (set client information) ......................................................................... 55
SetClientBrowser (set browser information) ........................................................ 55
TakeFile (send HTML code or JSL data) ............................................................. 56
TakeHtmlPage (prepare and send HTML code) ................................................... 57
TakeJslData (prepare and send JSL data) ............................................................. 58
TakeUnauthorized (prepare and send access denied page) .................................. 59
W
EB
S
ERVER
C
LASSES
61
Overview
63
WebServerClass Concepts .................................................................................... 63
ShutDownClass Concepts ..................................................................................... 63
Relationship to Other Internet Builder Classes .................................................... 63
Internet Connect Template Implementation ......................................................... 64
Source Files .......................................................................................................... 64
Conceptual Example ............................................................................................. 65
WebServerClass Properties
66
Active (server communicates with broker) .......................................................... 66
ArgIndex (index to browser request string) .......................................................... 66
Broker (BrokerClass object) ................................................................................. 66
CurSubmit (SubmitItemClass object) .................................................................. 67
Client (WebClientManagerClass object) .............................................................. 67
CommandLine (command line parameters) ......................................................... 68
DialogPageBackColor (MESSAGE page background color) .............................. 68
DialogPageImage (MESSAGE page wallpaper) .................................................. 68
DialogWinBackColor (MESSAGE window background color) .......................... 68
DialogWinImage (MESSAGE window wallpaper) .............................................. 69
Files (WebFilesClass object) ................................................................................ 69
GotCommandLine (command line arguments set flag) ....................................... 69
JavaLibraryPath (Java Support Library location) ................................................. 70
PageToReturnTo (return URL) ............................................................................. 70
ProgramName (Server pathname) ........................................................................ 71
TimeOut (period of inactivity after which to shut down) ..................................... 71
Zgłoś jeśli naruszono regulamin