BBjJettyServerConfiguration::getMimeTypes

Description

In BBj 19.0 and higher, this method returns a BBjVector containing the configured mime-types from jetty.xml.

Syntax

Return Value

Method

BBjVector

getMimeTypes()

Return Value

Returns a BBjVector containing the configured mime-types.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjVector mimeTypes!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
mimeTypes! = config!.getMimeTypes()
sz = mimeTypes!.size()
for i = 0 to sz-1
    print mimeTypes!.get(i)
next i

See Also

BBjJettyServerConfiguration::addMimeType

BBjJettyServerConfiguration::removeMimeType