BBjJettyContextConfiguration::removeWelcomeFile


Description

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

Syntax

Return Value

Method

void

removeWelcomeFile(string welcome)

Parameters

Variable

Description

welcome

the welcome-file to remove

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!.removeWelcomeFile("index.html")

See Also

BBjAPI

BBjJettyContextConfiguration