BBjJettyContextConfiguration::addWelcomeFile


Description

In BBj 15.0 and higher, this method will add a welcome-file to the Jetty Context

Syntax

Return Value

Method

void

addWelcomeFile(string welcome)

Parameters

Variable

Description

welcome

the name of the welcome file

Return Value

None.

Remarks

A welcome file is the file that is invoked automatically by the server, if you don't specify any file name.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

rem '-- Add a new host to the root context
root!.addWelcomeFile("index.html")

See Also

BBjAPI

BBjJettyContextConfiguration