BBjJettyServerConfiguration::getCustomContext

Description

In BBj 17.0 and higher, this method gets a BBjJettyContextConfiguration for the name's context.

Syntax

Return Value

Method

BBjJettyContextConfiguration

getCustomContext(string name)

Parameters

Variable

Description

name

Specifies the name of the context.

Return Value

Returns BBjJettyContextConfiguration object representing the 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.