BBjspServletConfiguration::getParameterNames (Deprecated)

Description

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

Syntax

Return Value

Method

BBjVector

getParameterNames()

Parameters

None.

Return Value

a BBjVector containing the names of configured parameters of the servlet

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjspServletConfiguration servletConfig!

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

vect! = root!.getBBjspServletMappings()

if vect!.size() then
    for i = 0 to vect!.size()-1
        mapping$ = vect!.get(i)
        servletConfig! = root!.getBBjspServlet(mapping$)
        print servletConfig!.getMapping() + " = " + servletConfig!.getSourceName() + "::" + servletConfig!.getClassName()
        
        str$ = servletConfig!.getWorkingDir()
        if str$ <> "" print " Working Directory:"+str$
        
        str$ = servletConfig!.getTerminalAlias()
        if str$ <> "" print " Terminal Alias:"+str$
        
        str$ = servletConfig!.getConfig()
        if str$ <> "" print " Config:"+str$
        
        str$ = servletConfig!.getUser()
        if str$ <> "" print " User Name:"+str$
        
        params! = servletConfig!.getParameterNames()
        if params!.size()
            for j = 0 to params!.size()-1
                paramName$ = params!.get(j)
                print " PARAM " + paramName$ + " = " + servletConfig!.getParameter(paramName$)
            next j
        endif
    next i
endif

See Also

BBjspServletConfiguration