BBjAppServer

Description

In BBj 10.0 and higher, the BBjAppServer is used to manage the BUI Application Server; starting and stopping the server, publishing BUI applications, and managing server resources and global configuration settings.

Creation

BBjAPI > BBjAdmin > BBjAppServer

The BBjAppServer is created through the following BBjAdmin method:

Return Value

Method

BBjAppServer

getWebAppServer()

Methods of BBjAppServer

Return Value

Method

BBjResourceUrl

addApplicationIcon(string iconFileName)

BBjResourceUrl

addStaticResource(string fileName, string mimeType)

BBjResourceUrl

addStyleSheet(string styleSheetFileName)

BBjVector

getAllAppNames()

BBjApplication

getApplication(string name)

int

getClientPollInterval()

boolean

getDevelopmentMode()

boolean

getDisallowConsole()

BBjBuiCloseAction

getEndAction()

BBjBuiCloseAction

getErrAction()

boolean

getManageBrowserHistory()

boolean

getOmitBasisCss()

boolean

getSecure()

int

getSessionTimeout()

boolean

getShowBrowserWarning()

boolean

getShowClientConfirmationDialog()

BBjResourceUrl

getStaticResource(string fileName)

BBjResourceUrl

getStaticResource(string fileName, string mimetype)

BBjVector

getStaticResources()

BBjVector

getStaticResources(string mimetype)

boolean

isPublished(BBjApplication application)

boolean

isRunning()

BBjAppConfig

makeEmptyAppConfig()

void

publish(BBjApplication application)

void

removeStaticResource(BBjResourceUrl url)

void

setClientPollInterval(int interval)

void

setDevelopmentMode(boolean development)

void

setDisallowConsole(boolean disallowConsole)

void

setEndAction(BBjBuiCloseAction action)

void

setErrAction(BBjBuiCloseAction action)

void

setManageBrowserHistory(boolean manage)

void

setOmitBasisCss(boolean omitBasisCss)

void

setSecure(boolean secure)

void

setSessionTimeout(int timeout)

void

setShowBrowserWarning(boolean show)

void

setShowClientConfirmationDialog(boolean show)

boolean

start()

boolean

stop()

BBjApplication

unpublish(string appName)

void

updateApplicationIcon(BBjResourceUrl url, string iconFileName)

Remarks

None.

Constants

None.

Example

Copy

BBjAppServer Example

rem ' BBjAppServer
admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()

See Also

BBjAPI

BBjAdmin

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.