BBjspCommandForward::getPipelineName (Deprecated)

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

Description

In BBj 18.0 and higher, this method returns the name of the configured pipeline to be run for this BBjspCommandForward.

The pipeline specified here takes precedence over the pipeline configured in the BBjspCommand

Syntax

Return Value

Method

String

getPipelineName()

Parameters

None.

Return Value

the name of the pipeline to run.

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

commands! = context!.getCommandConfigs()

if (commands!.size()) then
    for i = 0 to commands!.size()-1
        commandCfg! = cast(BBjspCommandConfig,commands!.get(i))

        print commandCfg!.getPath() + " -> " + commandCfg!.getSource() + "::" + commandCfg!.getClassName()
        print " PIPELINE:" + commandCfg!.getPipelineName()

        cfg! = commandCfg!.getCommandForwardNames()
        if (cfg!.size()) then
            for j = 0 to cfg!.size()-1
                declare BBjspCommandForward fwd!
                n$ = cfg!.get(j)
                fwd! = commandCfg!.getCommandForward(n$)
                print " FORWARD:" + fwd!.getName() + " -> " + fwd!.getPath()
            next j
        endif
    next i
endif

See Also

BBjspCommandConfig

BBjspCommandForward