C# Class WhiteCore.Modules.Web.WebInterface

Inheritance: IService, IWebInterfaceModule
Datei anzeigen Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Public Properties

Property Type Description
gridSettings GridSettings

Protected Properties

Property Type Description
_defaultTranslator ITranslator
_enabled bool
_pages IWebInterfacePage>.Dictionary
_port uint
_translators List
m_localHtmlPath string

Public Methods

Method Description
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

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddDefaultVarsForPage() protected method

protected AddDefaultVarsForPage ( object>.Dictionary &vars ) : void
vars object>.Dictionary
return void

AddVarsForPage() protected method

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
return object>.Dictionary

ConvertHTML() protected method

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
return string

FindAndSendPage() protected method

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
return byte[]

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

GetContentType() protected method

protected GetContentType ( string filename, WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse response ) : string
filename string
response WhiteCore.Framework.Servers.HttpServer.Implementation.OSHttpResponse
return string

GetFileNameFromHTMLPath() protected method

protected GetFileNameFromHTMLPath ( string path, Hashtable query ) : string
path string
query System.Collections.Hashtable
return string

GetGridSettings() public method

public GetGridSettings ( ) : GridSettings
return GridSettings

GetPage() public method

public GetPage ( string path ) : IWebInterfacePage
path string
return IWebInterfacePage

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

ParseQueryString() public static method

public static ParseQueryString ( string query ) : object>.Dictionary
query string
return object>.Dictionary

SaveGridSettings() public method

public SaveGridSettings ( GridSettings settings ) : void
settings GridSettings
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Property Details

_defaultTranslator protected_oe property

protected ITranslator _defaultTranslator
return ITranslator

_enabled protected_oe property

protected bool _enabled
return bool

_pages protected_oe property

protected Dictionary _pages
return IWebInterfacePage>.Dictionary

_port protected_oe property

protected uint _port
return uint

_translators protected_oe property

protected List _translators
return List

gridSettings public_oe property

public GridSettings,WhiteCore.Modules.Web gridSettings
return GridSettings

m_localHtmlPath protected_oe property

protected string m_localHtmlPath
return string