
BBjResourceUrl::setMimeType
Description
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
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.