BBjResourceUrl::setMimeType

Description

In BBj 12.0 and higher, this methods sets the MIME type of this resource.

Syntax

Return Value

Method

void

setMimeType(string mimeType)

Parameters

Variable

Description

mimeType

The MIME type of the resource.

Return Values

None.

Remarks

None.

Example

rem ' BBjResourceUrl::setMimeType

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)
        mime$ = resource!.getMimeType()
        resource!.setMimeType(mime$)
        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.