BBjJavaServletConfiguration::getClassName

Description

In BBj 15.0 and higher, this method returns the name of the class which was deployed as a servlet. The class name will be the fully-qualified name of a class which includes the package.

Syntax

Return Value

Method

String

getClassName()

Parameters

None.

Return Value

the fully qualified class name

Remarks

The classname cannot be changed.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjVector vect_servlets!
declare BBjNumber sz
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

rem '-- Get ALL the Java servlets from the root context and print their configuration
vect_servlets! = root!.getJavaServlets()
sz = vect_servlets!.size()
if (sz = 0) then
    for i = 0 to sz-1
        declare BBjJavaServletConfiguration servletConfig!
        servletConfig! = cast(BBjJavaServletConfiguration,vect_servlets!.get(i))
        print servletConfig!.getClassName()
        print servletConfig!.getMapping()
    next i
endif

See Also