BBjAppServer::getStaticResources

Description

In BBj 12.0 and higher, this method returns a BBjVector of all defined BBjResourceUrl static resources (style sheets and images).

Syntax

Return Value

Method

BBjVector

getStaticResources()

BBjVector

getStaticResources(string mimetype)

Parameters

Variable

Description

mimetype

The MIME type.

Return Value

Returns a BBjVector of BBjResourceUrl objects. This BBjVector may have zero elements.

Remarks

None.

Example

rem ' BBjAppServer::getStaticResources

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
vector! = appServer!.getStaticResources()
if (vector!.size()) then
    for i = 0 to vector!.size() - 1
        resource! = vector!.get(i)
        print ""
        print resource!.getMimeType()
        print resource!.getSourceFileName()
        print resource!.getAppUrl()
    next i
endif

See Also

BBjAPI

BBjAppServer

BBjAppServer::getStaticResource

BBjAppServer::addApplicationIcon

BBjAppServer::addStaticResource

BBjAppServer::addStyleSheet

BBjAppServer::removeStaticResource

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