BBjJettyContextConfiguration::isEnabled


Description

In BBj 15.0 and higher, this method identifies if the context is enabled or not

Syntax

Return Value

Method

boolean

isEnabled()

Parameters

None.

Return Value

true if the context is enabled otherwise false

Remarks

None.

Example

rem '=== THIS PROGRAM CHECKS IF A CONTEXT IS ENABLED ===

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

if (root!.isEnabled()) then
    print "Context is ENABLED"
else
    print "Context is DISABLED"
endif

See Also

BBjAPI

BBjJettyContextConfiguration