BBjJettyContextConfiguration::addCommandConfig (Deprecated)

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

Description

In BBj 17.00 and higher, this method creates a new BBjspCommandConfig representing a BBjspCommand that can be registered with the current BBjJettyContext.

Syntax

Return Value

Method

BBjspCommandConfig

addCommandConfig(string path, string className, string source)

Parameters

Variable

Description

className

the BBj class name

path

the context relative path for the command

source

the source file containing the class

Return Value

The BBjspCommandConfig

Remarks

None.

Example

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
jetty! = admin!.getJettyServerConfig()
context! = jetty!.getCustomContext("test")
cmd! = context!.addCommandConfig("/foo.cmd","Foo","Foo.bbj")
cmd!.addForward("success","/success.bbjsp",false)
context!.saveCommandConfig(cmd!)

See Also

BBjAPI

BBjJettyContextConfiguration

BBjspCommandConfig

Command Engine

BBjspCommand