BBjspCommandConfig::getParameterNames (Deprecated)

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

Description

In BBj 18.0 and higher, this method returns a BBjVector containing the names of the configured parameters.

Syntax

Return Value

Method

BBjVector

getParameterNames()

Parameters

None.

Return Value

a BBjVector containing the parameter names

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

vect! = context!.getCommandConfigs()

if (vect!.size()) then
    for i = 0 to vext!.size()-1
        commandCfg! = cast(BBjspCommandConfig,vect!.get(i))
        print commandCfg!.getPath()

        paramNames! = commandCfg!.getParameterNames()
        if (paramNames!.size()) then
            for j = 0 to paramNames!.size()-1
                name$ = paramNames!.get(j)
                value$ = commandCfg!.getParameter(n$)
                print " PARAM:" + name$ + " -> " + value$
            next j
        endif
    next i
endif

See Also