BBjJettyContextConfiguration::getBBjspServletMappings (Deprecated)

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

Description

In BBj 17.00 and higher, this method returns a BBjVector containing the mapping of all BBjspServlets registered in the context.

Syntax

Return Value

Method

BBjVector

getBBjspServletMappings()

Parameters

None.

Return Value

a BBjVector of BBjspServletConfiguration objects

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjVector contextNames!
declare BBjJettyContextConfiguration context!

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

contextNames! = config!.getContextNames()
sz = contextNames!.size()

context! = config!.getRootContextInfo()
vect! = context!.getBBjspServletMappings()
if vect!.size()
    for i = 0 to vect!.size()-1
        name$ = vect!.get(i)
        print "RootContext has BBJSP Servlet:" + name$
    next i
endif

vect! = context!.getServletNames()
if vect!.size()
    for i = 0 to vect!.size()-1
        name$ = vect!.get(i)
        print "RootContext has BBJSP Servlet:" + name$
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration

BBjVector

BBjspServletConfiguration