BBjJettyServerConfiguration::getContextNames

Description

In BBj 17.0 and higher, this method returns a BBjVectorcontaining the names of the contexts configured in the Jetty web server.

Syntax

Return Value

Method

BBjVector

getContextNames()

Parameters

None.

Return Value

Returns a BBjVector of names.

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjVector contextNames!
declare BBjJettyContextConfiguration context!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
contextNames! = config!.getContextNames()
sz = contextNames!.size()
for i = 0 to sz-1
    name$ = contextNames!.get(i)
    context! = config!.getCustomContext(name$)
    print name$ + " context has docbase:" + context!.getDocBase()
next i
context! = config!.getRootContextInfo()
print "ROOT context has docbase:" + context!.getDocBase()

See Also

BBjAPI

BBjJettyContextConfiguration

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