C# Class Universe.Modules.Web.WebInterface

Inheritance: IService, IWebInterfaceModule
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Méthodes publiques

Свойство Type Description
gridSettings GridSettings

Protected Properties

Свойство Type Description
_defaultTranslator ITranslator
_enabled bool
_pages IWebInterfacePage>.Dictionary
_port uint
_translators List
m_localHtmlPath string

Méthodes publiques

Méthode Description
FinishedStartup ( ) : void
GetGridSettings ( ) : GridSettings
GetPage ( string path ) : IWebInterfacePage
Initialize ( IConfigSource config, IRegistryCore registry ) : void
ParseQueryString ( string query ) : object>.Dictionary
RegionPresetArgs ( ITranslator translator ) : object>>.List
RegionTerrainArgs ( ITranslator translator ) : object>>.List
RegionTypeArgs ( ITranslator translator ) : object>>.List
SaveGridSettings ( GridSettings settings ) : void
Start ( IConfigSource config, IRegistryCore registry ) : void
UserFlagToType ( int userFlags, ITranslator translator ) : string

User flags to type string.

UserTypeArgs ( ITranslator translator ) : object>>.List

Webpage UL type arguments.

UserTypeToUserFlags ( string userType ) : int

Convert to to user flags.

Méthodes protégées

Méthode Description
AddDefaultVarsForPage ( object>.Dictionary &vars ) : void
AddVarsForPage ( string filename, string parentFileName, OSHttpRequest httpRequest, OSHttpResponse httpResponse, object>.Dictionary requestParameters, string &response ) : object>.Dictionary
ConvertHTML ( string originalFileName, string file, OSHttpRequest request, OSHttpResponse httpResponse, object>.Dictionary requestParameters, object>.Dictionary vars ) : string
FindAndSendPage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
GetContentType ( string filename, OSHttpResponse response ) : string
GetFileNameFromHTMLPath ( string path, Hashtable query ) : string

Private Methods

Méthode Description
CheckAuth ( string p, 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, OSHttpRequest httpRequest, OSHttpResponse httpResponse, object>.Dictionary requestParameters ) : UniverseXmlDocument
Redirect ( OSHttpResponse httpResponse, string url ) : void
SaveWebUISettings ( WebUISettings settings ) : void

Method Details

AddDefaultVarsForPage() protected méthode

protected AddDefaultVarsForPage ( object>.Dictionary &vars ) : void
vars object>.Dictionary
Résultat void

AddVarsForPage() protected méthode

protected AddVarsForPage ( string filename, string parentFileName, OSHttpRequest httpRequest, OSHttpResponse httpResponse, object>.Dictionary requestParameters, string &response ) : object>.Dictionary
filename string
parentFileName string
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
requestParameters object>.Dictionary
response string
Résultat object>.Dictionary

ConvertHTML() protected méthode

protected ConvertHTML ( string originalFileName, string file, OSHttpRequest request, OSHttpResponse httpResponse, object>.Dictionary requestParameters, object>.Dictionary vars ) : string
originalFileName string
file string
request Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
requestParameters object>.Dictionary
vars object>.Dictionary
Résultat string

FindAndSendPage() protected méthode

protected FindAndSendPage ( string path, Stream request, OSHttpRequest httpRequest, OSHttpResponse httpResponse ) : byte[]
path string
request Stream
httpRequest Universe.Framework.Servers.HttpServer.Implementation.OSHttpRequest
httpResponse Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Résultat byte[]

FinishedStartup() public méthode

public FinishedStartup ( ) : void
Résultat void

GetContentType() protected méthode

protected GetContentType ( string filename, OSHttpResponse response ) : string
filename string
response Universe.Framework.Servers.HttpServer.Implementation.OSHttpResponse
Résultat string

GetFileNameFromHTMLPath() protected méthode

protected GetFileNameFromHTMLPath ( string path, Hashtable query ) : string
path string
query System.Collections.Hashtable
Résultat string

GetGridSettings() public méthode

public GetGridSettings ( ) : GridSettings
Résultat GridSettings

GetPage() public méthode

public GetPage ( string path ) : IWebInterfacePage
path string
Résultat IWebInterfacePage

Initialize() public méthode

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

ParseQueryString() public static méthode

public static ParseQueryString ( string query ) : object>.Dictionary
query string
Résultat object>.Dictionary

RegionPresetArgs() public méthode

public RegionPresetArgs ( ITranslator translator ) : object>>.List
translator ITranslator
Résultat object>>.List

RegionTerrainArgs() public méthode

public RegionTerrainArgs ( ITranslator translator ) : object>>.List
translator ITranslator
Résultat object>>.List

RegionTypeArgs() public méthode

public RegionTypeArgs ( ITranslator translator ) : object>>.List
translator ITranslator
Résultat object>>.List

SaveGridSettings() public méthode

public SaveGridSettings ( GridSettings settings ) : void
settings GridSettings
Résultat void

Start() public méthode

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

UserFlagToType() public méthode

User flags to type string.
public UserFlagToType ( int userFlags, ITranslator translator ) : string
userFlags int User flags.
translator ITranslator
Résultat string

UserTypeArgs() public méthode

Webpage UL type arguments.
public UserTypeArgs ( ITranslator translator ) : object>>.List
translator ITranslator Translator.
Résultat object>>.List

UserTypeToUserFlags() public méthode

Convert to to user flags.
public UserTypeToUserFlags ( string userType ) : int
userType string User type Index.
Résultat int

Property Details

_defaultTranslator protected_oe property

protected ITranslator _defaultTranslator
Résultat ITranslator

_enabled protected_oe property

protected bool _enabled
Résultat bool

_pages protected_oe property

protected Dictionary _pages
Résultat IWebInterfacePage>.Dictionary

_port protected_oe property

protected uint _port
Résultat uint

_translators protected_oe property

protected List _translators
Résultat List

gridSettings public_oe property

public GridSettings,Universe.Modules.Web gridSettings
Résultat GridSettings

m_localHtmlPath protected_oe property

protected string m_localHtmlPath
Résultat string