BBjJettyServerConfiguration::getRootContextInfo

Description

In BBj 17.0 and higher, this method gets a BBjJettyContextConfiguration for the default BBj context.

Syntax

Return Value

Method

BBjJettyContextConfiguration

getRootContextInfo()

Parameters

None.

Return Value

Returns BBjJettyContextConfiguration object representing the root context.

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.