8288分类目录 8288分类目录 8288分类目录
  当前位置:海洋目录网 » 站长资讯 » 站长资讯 » 文章详细 订阅RssFeed

使用 IntraWeb (36) - TIWServerControllerBase

来源:本站原创 浏览:113次 时间:2021-09-16
使用 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: TIWRende������ɫ,������ɫring  //两个取值: 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//建立临时文件


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



  推荐站点

  • At-lib分类目录At-lib分类目录

    At-lib网站分类目录汇集全国所有高质量网站,是中国权威的中文网站分类目录,给站长提供免费网址目录提交收录和推荐最新最全的优秀网站大全是名站导航之家

    www.at-lib.cn
  • 中国链接目录中国链接目录

    中国链接目录简称链接目录,是收录优秀网站和淘宝网店的网站分类目录,为您提供优质的网址导航服务,也是网店进行收录推广,站长免费推广网站、加快百度收录、增加友情链接和网站外链的平台。

    www.cnlink.org
  • 35目录网35目录网

    35目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向35目录推荐、提交优秀网站。

    www.35mulu.com
  • 就要爱网站目录就要爱网站目录

    就要爱网站目录,按主题和类别列出网站。所有提交的网站都经过人工审查,确保质量和无垃圾邮件的结果。

    www.912219.com
  • 伍佰目录伍佰目录

    伍佰网站目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向伍佰目录推荐、提交优秀网站。

    www.wbwb.net