BBjJettyContextConfiguration::getWelcomeFiles


Description

In BBj 15.0 and higher, each Jetty context can define which files are sent to the browser when a request does not contain a specific file

This method gets a BBjVector containing the configured welcome-files.

Example of a welcome file would be index.html

Syntax

Return Value

Method

BBjVector

getWelcomeFiles()

Parameters

None.

Return Value

a BBjVector of Strings

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()

declare BBjVector welcomeFiles!
welcomeFiles! = root!.getWelcomeFiles()
sz = welcomeFiles!.size()
if (sz) then
    for i = 0 to sz-1
        print welcomeFiles!.get(i)
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration

BBjVector