BBjAppServer::getStaticResource

Description

In BBj 16.0 and higher, this method returns an existing defined BBjResourceUrl static resource.

Syntax

Return Value

Method

BBjResourceUrl

getStaticResource(string fileName)

BBjResourceUrl

getStaticResource(string fileName, string mimetype)

Parameters

Variable

Description

fileName

The fully-qualified filename.

mimetype

The MIME type.

Return Value

Returns a defined BBjResourceUrl corresponding to the contents of the file at the time it was added to the app server.

Remarks

None.

Example

rem ' BBjAppServer:getStaticResource

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
basis$ = System.getProperty("basis.BBjHome")
filename$ = basis$ + "/perfanalyzer/_prof_icon.png"
resource! = appServer!.getStaticResource(filename$)
print "getStaticResource ",resource!

See Also

BBjAPI

BBjAppServer

BBjAppServer::getStaticResources

BBjAppServer::addApplicationIcon

BBjAppServer::addStaticResource

BBjAppServer::addStyleSheet

BBjAppServer::removeStaticResource

BBjResourceUrl

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