BBjResourceUrl::getMimeType

Description

In BBj 12.0 and higher, this method returns the MIME type of this resource.

Syntax

Return Value

Method

string

getMimeType()

Parameters

None.

Return Values

The MIME type of this resource.

Remarks

None.

Example

rem ' BBjResourceUrl::getMimeType

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 resource!.getSourceFileName(),

       print " (",resource!.getMimeType(),")"

   next i

endif

See Also

BBjAPI

BBjAppConfig

BBjAppServer

BBjResourceUrl

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