BBjJettyContextConfiguration::getParameterNames


Description

In BBj 15.0 and higher, this method returns the configured parameters for the Context.

Syntax

Return Value

Method

BBjVector

getParameterNames()

Parameters

None.

Return Value

a BBjVector containing the names of parameters

Remarks

Parameters stored in the context are accessible to all servlets running within the context. Parameters are name and value pairs of Strings

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjJettyContextConfiguration bbjsp!
declare BBjVector names!
declare BBjNumber sz

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

names! = root!.getParameterNames()

sz = names!.size()
if (sz) then
    for i = 0 to sz-1
        name$ = names!.get(i)
        value$ = root!.getParameterValue(name$)
        print name$ + " = " + value$
    next i
endif

See Also

BBjVector

BBjAPI

BBjJettyContextConfiguration

BBjVector