使用 IntraWeb (36) - TIWServerControllerBase    


每个应用须有且只有一个 Server Controller.



TIWServerControllerBase 所在单元及继承链:
IWServerControllerBase.TIWServerControllerBase < TIWDataModule < TDataModule < TComponent < TPersistent < TObject

主要成员:


property ContentPath: string      //网站静态内容全路径: ...\wwwroot\property Locked: Boolean          //only read, 无用.property StartDateTime: TDateTime //开始时间property StartUID: string         //其内部资源提取后命名时缀有这个 ID, 可能只是强调其唯一性property GUIActive: Boolean       //是否在 GUI 模式下; only readproperty LicenseTracking: Boolean //property MachineName: string      //计算机名property ProcessID: string        //进程 ID, 内部用于目录的唯一性property Rendering: TIWRendering  //两个取值: rnInFile、rnInMemory(默认)property CacheFiles: TStrings     //缓存文件列表property ServerVariables: TStringList  //可以通过它设置全局变量property RewriteURL: string       //是配合 IIS 使用的property AuthBeforeNewSession: Boolean //是否在创建 Session 之前验证, 默认 False; 这和代码写法也有关系property AppName: string      //应用名称property BoundIP: string      //绑定 IPproperty CacheDir: string     //缓存全路径property CharSet: string      //默认 UTF8property CacheExpiry: Integer //缓存文件保留的分钟数property ComInitialization: TComInitialization //COM 初始化选项; 其默认值 ciNone 表示不需要 COMproperty Compression: TIWCompressionOptions    //压缩相关设置property Description: string     //程序描述property DebugHTML: Boolean     //默认 False; True 时, 最终的 Html 代码会更易读property DisplayName: string     //程序的显示名称property Log: TLogOptions     //两个选项: loNone(默认)、loFile(将会在程序目录保存日志)property EnableImageToolbar: Boolean //当鼠标在图片上时, 是否启用图像工具栏; 只对个别浏览器有效property ExceptionDisplayMode: TIWShowMessageType //异常显示模式: smAlert(默认)、smNewWindow、smSameWindow、smSameWindowFrameproperty FilesDir: TIWDirectoryName  //? 应该没用了property HistoryEnabled: Boolean          //是否记忆页面历史, 允许后可使用"前进、后退"按钮(仅在非异步状态下)property InternalFilesDir: TIWDirectoryName //用于 ISAPI 模式, 指定内部文件目录property InternalFilesURL: string           //用于 ISAPI 模式property JavascriptDebug: Boolean      //是否启用 js 调试, JavaScriptOptions 中也有property HTMLHeaders: TStringList      //添加到 Html Head 中的内容property ContentFiles: TStringList     //添加 js 或 css 链接property MasterTemplate: string       //指定主模板property PageTransitions: Boolean      //是否使用页面过渡效果, 只用于个别浏览器property Port: Integer       //端口; 一般是随机分配的, 设置只对独立服务器程序有效, 不影响 ISAPIproperty RedirectMsgDelay: Integer     //重定向延迟(秒)property ServerResizeTimeout: Integer  //响应 OnResize 事件延迟(毫秒); 默认 0 表示立即执行property Auther: TIWAutherBase         //指定验证控件property ShowLoadingAnimation: Boolean //是否显示载入动画property SessionTimeout: Integer       //Session 超时分钟数; 默认 20 分钟, 有些版本限制修改property StyleSheet: TIWFileReference  //指定 *.css 文件property SSLOptions: TIWSSLOptions     //SSL 安全选项; 只用于独立服务器程序property TemplateDir: string       //模板文件夹全路径property Theme: string       //? 今后 IW 会使用主题吗? 和模板如何协调?property URLBase: string       //IW 版本property Version: string       //IntraWeb 版本号property AllowMultipleSessionsPerUser: Boolean //允许多进程访问?property DocType: string       //指定 Html 的 DocTypeproperty IECompatibilityMode: string   //IE 兼容模式property ShowStartParams: Boolean      //开始参数是否显示在 Url 中property ExceptionLogger: TIWExceptionLogger    //异常日志记录器; 这也是 IW.14 新增的; 参考: http://ww2.atozed.com/docs/IW/Classes/TIWExceptionLogger.htmlproperty CookieOptions: TIWSessionCookieOptions//Cookie 选项property SearchEngineOptions: TIWSearchEngineOptions //property JavaScriptOptions: TIWJavaScriptOptions     //js 调试与压缩选项property HttpKeepAlive: Boolean//是否保存连接, 默认 False; IW.14.0.11 新增property SecurityOptions: TIWSecurityOptions    //安全选项property UseInternalFiles: Boolean              //only write; 暂未见内部有用它的地方property OnAfterDispatch: TOnDispatch      //property OnBeforeDispatch: TOnDispatch      //property OnCloseSession: TOnCloseSessionEvent //property OnConfig: TNotifyEvent      //初始化; 常用property OnException: TOnExceptionEvent      //property OnGetSessionID: TOnGetSessionID      //property OnNewSession: TOnNewSessionEvent     //ServerController 单元已默认使用property OnGetMainForm: TOnGetMainFormEvent   //property OnBackButton: TOnBackButtonEvent     //点后退按钮时property OnBeforeRender: TOnBeforeRenderEvent //property OnAfterRender: TOnAfterRenderEvent   //property OnUserTag: TOnUserTag      //property OnSessionTag: TOnSessionTag      //property OnBrowserCheck: TOnBrowserCheckEvent //浏览器判断property OnCreate: TNotifyEvent               //常用{在初始化阶段几个事件的执行顺序: OnConfig、OnCreate、OnBrowserCheck、OnGetSessionID、OnNewSession、OnGetMainForm、OnBeforeRender、OnAfterRender}function AuthActive: Booleanclass procedure SetServerControllerClass      //ServerController 单元 initialization ...class function NewCacheFile(const AContentType: string): string//建立临时文件


//它有点复杂, 随时补充...



©著作权归作者所有:来自51CTO博客作者JLee79的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 使用 IntraWeb (24) - 基本控件之 TIWFileUploader、TIWFile
  2. Delphi 正则表达式语法(10): 选项
  3. 使用 IntraWeb (23) - 基本控件之 TIWTimer、TIWProgressBar、TI
  4. 换肤案例以及选项卡
  5. js基础知识:Ajax的get,post异步请求 及 选项卡、换肤实例
  6. ajax 的 get, post 请求;实战:选项卡和一键换肤----0408
  7. zabbix监控默认的item key列表
  8. 【DB笔试面试108】在Oracle中,sqldlr true 。。。SQL*Loader util
  9. 【DB笔试面试119】在Oracle中,Identify three key features of AS

随机推荐

  1. AnimatedStateListDrawable介绍
  2. Android之列表对话框
  3. Android图片旋转实例
  4. Android中模拟点击软件的实现原理探究
  5. android微博客户端源代码
  6. Android中的android:layout_weight讲解
  7. android 相对布局
  8. Android获取当前时间
  9. Android ScrollView 去掉 scrollbar 和
  10. 日期和时间(DatePicker、TimePicker)