BBjResourceUrl

Description

In BBj 12.0 and higher, a BBjResourceUrl uniquely identifies a resource used by a BUI application.

Creation

BBjAPI > BBjAdmin > BBjAppServer > BBjResourceUrl

The BBjResourceUrl is created through the following BBjAppServer methods:

Return Value

Method

BBjResourceUrl

addApplicationIcon(string iconFileName)

BBjResourceUrl

addStaticResource(string fileName, string mimeType)

BBjResourceUrl

addStyleSheet(string styleSheetFileName)

Methods of BBjResourceUrl

Return Value

Method

string

getAppUrl()

string

getMimeType()

string

getSourceFileName()

void

setMimeType(string mimeType)

void

setSourceFileName(string sourceFile)

Remarks

BUI currently recognizes two kinds of resources: style sheets, with the MIME type text/css, and images, with any image/* MIME type (e.g. image/png).

Constants

None.

Example

rem ' BBjResourceUrl

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

See Also

BBjAPI

BBjAdmin

BBjAppServer

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