BBjspCommandConfig::getParameter (Deprecated)

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

Description

In BBj 16.20 and higher, this method returns the value of a previously added parameter in this BBjspCommandConfig.

Syntax

Return Value

Method

String

getParameter(string name)

Parameters

Variable

Description

name

the name of the parameter to get

Return Value

the value of the parameter

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

BBjspCommandConfig