BBjAppServer::removeStaticResource

Description

In BBj 12.00 and higher, removes a static resource from the set of available static resources.

Syntax

Return Value

Method

void

removeStaticResource(BBjResourceUrl url)

Parameters

Variable

Description

url

The BBjResourceUrl object to remove.

Return Value

None.

Example

rem ' BBjAppServer::removeStaticResource

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
vector! = appServer!.getStaticResources()
basis$ = System.getProperty("basis.BBjHome")
filename$ = basis$ + "/perfanalyzer/_prof_icon.png"
count = 0
if (vector!.size()) then
    for i = 0 to vector!.size() - 1
        resource! = vector!.get(i)
        if (resource!.getSourceFileName() = filename$) then
            print "removeStaticResource ",resource!
            appServer!.removeStaticResource(resource!)
            count = count + 1
        endif
    next i
endif
print "Removed",count," resources for ",filename$

See Also

BBjAPI

BBjAppServer

BBjAppServer::addApplicationIcon

BBjAppServer::addStaticResource

BBjAppServer::addStyleSheet

BBjAppServer::getStaticResources

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.