BBjJettyContextConfiguration::getCommandConfig (Deprecated)

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

Description

In BBj 17.00 and higher, this method returns a BBjspCommandConfig for the named command in the current BBjJettyContext.

Syntax

Return Value

Method

BBjspCommandConfig

getCommandConfig(string name)

Parameters

Variable

Description

name

The name of the command

Return Value

a BBjspCommandConfig record

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration context!
declare BBjspCommandConfig commandCfg!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
context! = config!.getRootContextInfo()
commandCfg! = context!.getCommandConfig("/foo.cmd")
vect! = commandCfg!.getCommandForwardNames()
if (vect!.size()) then
    for i = 0 to vext!.size()-1
        declare BBjspCommandForward fwd!
        fwd! = cast(BBjspCommandForward,vect!.get(i-1))
        System.out.println(fwd!.getName() + " -> " + fwd!.getPath())
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration

BBjspCommandConfig