BBjJettyContextConfiguration::getBBjspServlets (Deprecated)

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

Description

In BBj 17.00 and higher, this method returns a BBjVector containing BBjspServletConfiguration objects for all the BBJSP Servlets in the context.

Syntax

Return Value

Method

BBjVector

getBBjspServlets()

Parameters

None.

Return Value

Returns 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()
print "ROOT context has docbase:" + context!.getDocBase()
vect! = context!.getBBjspServlets()
if (vect!.size()) then
    print "BBjsp Servlets in ROOT context"
    for i = 1 to vect!.size()-1
        declare BBjspServletConfiguration bbjspServlet!
        bbjspServlet! = cast(BBjspServletConfiguration,vect!.get(i))
        print bbjspServlet!.getMapping() + " = " + bbjspServlet!.getSourceName() + "::" + bbjspServlet!.getClassName()
    next i
endif
vect! = context!.getServlets()
if (vect!.size()) then
    print "BBj Servlets in ROOT context"
    for i = 1 to vect!.size()-1
        declare BBjServletConfiguration bbjServlet!
        bbjServlet! = cast(BBjServletConfiguration,vect!.get(i))
        print bbjServlet!.getName() + " + " + bbjServlet!.getProgram() + " " + bbjServlet!.getConfig()
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration

BBjVector

BBjspServletConfiguration