BBjJettyServerConfiguration::createCustomContext

Description

In BBj 17.0 and higher, this method creates a new Context entry in the Jetty web server.

Syntax

Return Value

Method

BBjJettyContextConfiguration

createCustomContext(string name)

Parameters

Variable

Description

name

Specifies the name of the context to be created.

Return Value

Returns BBjJettyContextConfiguration for completion.

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration context!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
context! = config!.createCustomContext("NewContext")
config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration

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