I love the smell of UnrealEd crashing in the morning. – tarquin

UE3:WebAdmin (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
UT3 Object >> WebApplication >> WebAdmin

Contents

Package: 
WebAdmin
Direct subclass:
UTServerAdmin

The main entry point for the UT3 WebAdmin. This manages the initial web page request and authentication and session handling. The eventual processing of the request will be doen by query handlers.

Copyright 2008 Epic Games, Inc. All Rights Reserved

Author: Michiel 'elmuerte' Hendriks

[edit] Properties

[edit] auth

Type: IWebAdminAuth

The authorization handler instance

[edit] AuthenticationClass

Type: string

Modifiers: globalconfig

Defines the authentication handler class to use instead of the default one.

[edit] bChatLog

Type: bool

Modifiers: globalconfig


[edit] bHttpAuth

Type: bool

Modifiers: globalconfig

If set to true, use HTTP Basic authentication rather than a HTML form. Using HTTP authentication gives the functionality of automatic re-authentication.

[edit] dataStoreCache

Type: DataStoreCache


[edit] defaultAuthClass

Type: Class

The default authentication class

Default value: Class'WebAdmin.BasicWebAdminAuth'

[edit] defaultSessClass

Type: Class

The default session handler class

Default value: Class'WebAdmin.SessionHandler'

[edit] handlers

Type: array<IQueryHandler>

The loaded handlers.

[edit] menu

Type: WebAdminMenu

The menu handler

[edit] pccleanup

Type: PCCleanUp


[edit] QueryHandlers

Type: array<string>

Modifiers: globalconfig

The list of query handlers to automativally load

Default value, index 0: "WebAdmin.QHCurrent"

Default value, index 1: "WebAdmin.QHDefaults"

[edit] serverIp

Type: string

Modifiers: protected

local storage. Used to construct the auth URLs.

[edit] SessionHandlerClass

Type: string

Modifiers: globalconfig

The session handler to use instead of the default session handler

[edit] sessions

Type: ISessionHandler

The session handler

[edit] startpage

Type: string

Modifiers: globalconfig

The starting page. Defaults to /current

Default value: "/current"

[edit] timestamp

Type: string

Modifiers: const

Will contain the timestamp when this package was compiled

Default value: "2008-06-03 19:29:29 +0000"

[edit] version

Type: string

Modifiers: const


Default value: "1.4"

[edit] Instance functions

[edit] addMessage

function addMessage (IQueryHandler.WebAdminQuery q, string msg, optional IQueryHandler.EMessageType type)


[edit] addQueryHandler

function addQueryHandler (IQueryHandler qh)

Add a query handler to the list. This will also call init() and registerMenuItems() on the query handler.

[edit] CleanupApp

function CleanupApp ()

Overrides: WebApplication.CleanupApp


[edit] CleanupMsgSpecs

function CleanupMsgSpecs ()


[edit] CreateChatLog

function CreateChatLog ()


[edit] getAuthURL

function string getAuthURL (string forpath)

return the authentication URL string used in the user privileged system.

[edit] getMessagesObject

function WebAdminMessages getMessagesObject (IQueryHandler.WebAdminQuery q)


[edit] getSession

protected function bool getSession (out IQueryHandler.WebAdminQuery q)

Adds the ISession instance to query

[edit] getWebAdminUser

protected function bool getWebAdminUser (out IQueryHandler.WebAdminQuery q)

Retreives the webadmin user. Creates a new one when needed.

[edit] include

function string include (IQueryHandler.WebAdminQuery q, string file)

Include the specified file.

[edit] init

function init ()

Overrides: WebApplication.Init


[edit] initQueryHandlers

protected function initQueryHandlers ()

Load the registered query handlers

[edit] pageAbout

function pageAbout (IQueryHandler.WebAdminQuery q)


[edit] pageAuthentication

function pageAuthentication (IQueryHandler.WebAdminQuery q)

Produces the authentication page.

[edit] pageGenericError

function pageGenericError (IQueryHandler.WebAdminQuery q, coerce string errorMsg, optional string title)

Create a generic error message.

[edit] pageGenericInfo

function pageGenericInfo (IQueryHandler.WebAdminQuery q, coerce string msg, optional string title)

Create a generic information message.

[edit] parseCookies

protected function parseCookies (string cookiehdr, out array<Info.KeyValuePaircookies)


[edit] Query

function Query (WebRequest Request, WebResponse Response)

Overrides: WebApplication.Query


[edit] renderMessages

function string renderMessages (IQueryHandler.WebAdminQuery q)


[edit] sendPage

function sendPage (IQueryHandler.WebAdminQuery q, string file)

Load the given file and send it to the client.

[edit] setAuthCredCookie

function setAuthCredCookie (out IQueryHandler.WebAdminQuery q, string creddata, int timeout)