BBjJettyContextConfiguration::putCommandConfig (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 17.00 and higher, this method puts the BBjspCommandConfig in the configuration file for the BBjJettyContext and registers the new BBjspCommand for immediate use.

Syntax

Return Value

Method

void

putCommandConfig(BBjspCommandConfig config)

Parameters

Variable

Description

config

the BBjspCommandConfig to register

Return Value

None.

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration context!
declare BBjJettyContextConfiguration context2!
declare BBjspCommandConfig commandCfg!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
context! = config!.getRootContextInfo()

commandCfg! = context!.deleteCommandConfig("/foo.cmd")

context2! = config!.getCustomContext("foo")
context2!.putCommandConfig(commandCfg!)

config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration

BBjspCommandConfig