UE3:IQueryHandler (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search
UT3 Interface >> IQueryHandler
Package: 
WebAdmin

The query handler interface. The WebAdmin contains a collection of query handlers with handle most requests assigned to the WebAdmin application. During creating the query handler will receive a couple of set up calls: init(...) and registerMenuItems(...). The webadmin has to register all URLs it will handle (url without the webapp path prefix). It is also allowed to replace an existing menu item. When the WebAdmin is shut down the cleanup() method will be called. Use this to perform some clean up and to set all Actor references to none (in case the query handler extends Object).

Copyright 2008 Epic Games, Inc. All Rights Reserved

Author: Michiel 'elmuerte' Hendriks

Enums

EMessageType

MT_Information 
MT_Warning 
MT_Error 

Structs

KeyValuePair

string key 
string value 

Message

Used for the generic message processing in WebAdmin.addMessage();

EMessageType type 
string text 

WebAdminQuery

Struct contain current query information. Passed to the QueryHandlers.

WebRequest request 
WebResponse response 
ISession session 
IWebAdminUser user 
array<KeyValuePair> cookies 

Instance functions

cleanup

function cleanup ()

Cleanup (prepare for being destroyed). If the implementation extends Object it should set all actor references to none.

handleQuery

function bool handleQuery (WebAdminQuery q)

Called by the webadmin to request the query handler to handle this query.

Returns:

true when the query was handled.

init

function init (WebAdmin webapp)

Called when the WebAdmin creates and initializes this query handler.

registerMenuItems

function registerMenuItems (WebAdminMenu menu)

Called by the webadmin to request the query handler to add its menu items to the web admin menu. The menu is used to determine what query handler will be handle a given path. Paths not registered will be passed to all query handlers until one returns true.

unhandledQuery

function bool unhandledQuery (WebAdminQuery q)

Called in case of an unhandled path.

Returns:

true when the query was handled.