BBjJettyServerConfiguration::removeMimeType

Description

In BBj 19.00 and higher, this method removes a MIME type from jetty.xml.

MIME types are stored as mime-type elements in jetty.xml and are applicable to all contexts.

Syntax

Return Value

Method

void

removeMimeType(String extension)

Parameters

Parameter

Description

extension

The MIME type extension to remove.

Return Value

None.

Example

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

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
config!.removeMimeType("custom")

See Also

BBjJettyServerConfiguration::addMimeType

BBjJettyServerConfiguration::getMimeTypes