BBjspPipelineStageConfig (Deprecated)

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


Creation Path

BBjAPI| +--BBjAdmin| +--BBjJettyServerConfiguration| +--BBjJettyContextConfiguration| +--BBjspPipelineConfig| +--BBjspPipelineStageConfig

 

Description

In BBj 17.0 and higher, this class provides configuration for a BBjspPipelineStage.

Creation

The BBjspPipelineStageConfig is created through the following BBjspPipelineConfig method:

Return Value

Method

BBjspPipelineStageConfig

getStage(string name)

Methods of BBjspPipelineStageConfig

Return Value

Method

string

getClassname()

string

getName()

string

getSource()

Remarks

None.

Constants

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjspPipelineConfig pipelineConfig!
declare BBjspPipelineStageConfig stageConfig!
declare BBjVector stageNames!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

pipelineConfig! = root!.getPipelineConfig("MyPipeline")

print "Pipeline Name = " + pipelineConfig!.getName()
print "Config File = " + pipelineConfig!.getFilename()
print "config.bbx = " + pipelineConfig!.getBBjConfig()

stageNames! = pipelineConfig!.getStageNames()
print stageNames!
sz = stageNames!.size()
if (sz) then
    for i = 0 to sz-1
        name$ = stageNames!.get(i)
        stageConfig! = pipelineConfig!.getStage(name$)
        print " " + name$ + " - " + stageConfig!.getSource() + "::" + stageConfig!.getClassname()
    next i
endif

pipelineConfig!.save()

See Also