C# Класс WhiteCore.Modules.Web.WebInterface

Наследование: IService, IWebInterfaceModule
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
gridSettings GridSettings

Защищенные свойства (Protected)

Свойство Тип Описание
_defaultTranslator ITranslator
_enabled bool
_pages IWebInterfacePage>.Dictionary
_port uint
_translators List
m_localHtmlPath string

Открытые методы

Метод Описание
FinishedStartup ( ) : void
GetGridSettings ( ) : GridSettings
GetPage ( string path ) : IWebInterfacePage
Initialize ( IConfigSource config, IRegistryCore registry ) : void
ParseQueryString ( string query ) : object>.Dictionary
SaveGridSettings ( GridSettings settings ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void

Защищенные методы

Метод Описание
AddDefaultVarsForPage ( object>.Dictionary &vars ) : void
AddVarsForPage ( string filename, string parentFileName, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, object>.Dictionary requestParameters, string &response ) : object>.Dictionary
ConvertHTML ( string originalFileName, string file, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, object>.Dictionary requestParameters, object>.Dictionary vars ) : string
FindAndSendPage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
GetContentType ( string filename, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse response ) : string
GetFileNameFromHTMLPath ( string path, Hashtable query ) : string

Приватные методы

Метод Описание
CheckAuth ( string p, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest request ) : bool

Returns false if the authentication was wrong

ExtractLines ( string lines, int pos, string keyToCheck, string type, int &posToCheckFrom ) : List
FindLines ( string lines, int pos, string keyToCheck, string type ) : int
GetGridPages ( ) : GridPage
GetWebUISettings ( ) : WebUISettings
GetXML ( string filename, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, object>.Dictionary requestParameters ) : WhiteCore.Framework.Utilities.WhiteCoreXmlDocument
Redirect ( WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, string url ) : void
SaveWebUISettings ( WebUISettings settings ) : void

Описание методов

AddDefaultVarsForPage() защищенный Метод

protected AddDefaultVarsForPage ( object>.Dictionary &vars ) : void
vars object>.Dictionary
Результат void

AddVarsForPage() защищенный Метод

protected AddVarsForPage ( string filename, string parentFileName, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, object>.Dictionary requestParameters, string &response ) : object>.Dictionary
filename string
parentFileName string
httpRequest WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
requestParameters object>.Dictionary
response string
Результат object>.Dictionary

ConvertHTML() защищенный Метод

protected ConvertHTML ( string originalFileName, string file, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse, object>.Dictionary requestParameters, object>.Dictionary vars ) : string
originalFileName string
file string
request WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
requestParameters object>.Dictionary
vars object>.Dictionary
Результат string

FindAndSendPage() защищенный Метод

protected FindAndSendPage ( string path, Stream request, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest httpRequest, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Результат byte[]

FinishedStartup() публичный Метод

public FinishedStartup ( ) : void
Результат void

GetContentType() защищенный Метод

protected GetContentType ( string filename, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse response ) : string
filename string
response WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Результат string

GetFileNameFromHTMLPath() защищенный Метод

protected GetFileNameFromHTMLPath ( string path, Hashtable query ) : string
path string
query System.Collections.Hashtable
Результат string

GetGridSettings() публичный Метод

public GetGridSettings ( ) : GridSettings
Результат GridSettings

GetPage() публичный Метод

public GetPage ( string path ) : IWebInterfacePage
path string
Результат IWebInterfacePage

Initialize() публичный Метод

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат void

ParseQueryString() публичный статический Метод

public static ParseQueryString ( string query ) : object>.Dictionary
query string
Результат object>.Dictionary

SaveGridSettings() публичный Метод

public SaveGridSettings ( GridSettings settings ) : void
settings GridSettings
Результат void

Start() публичный Метод

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат void

Описание свойств

_defaultTranslator защищенное свойство

protected ITranslator _defaultTranslator
Результат ITranslator

_enabled защищенное свойство

protected bool _enabled
Результат bool

_pages защищенное свойство

protected Dictionary _pages
Результат IWebInterfacePage>.Dictionary

_port защищенное свойство

protected uint _port
Результат uint

_translators защищенное свойство

protected List _translators
Результат List

gridSettings публичное свойство

public GridSettings,WhiteCore.Modules.Web gridSettings
Результат GridSettings

m_localHtmlPath защищенное свойство

protected string m_localHtmlPath
Результат string