BBjJettyContextConfiguration::setCommandExtensions


Description

In BBj 18.11 and higher, this method sets the extensions that are associated with BBjspCommands in the context.

Syntax

Return Value

Method

void

setCommandExtensions(string extension)

Parameters

Variable

Description

extension

A comma-separated list of extensions or null to disable the command engine.

Return Value

None.

Remarks

The extensions used to map requests arriving in Jetty to the BBjspCommand engine for processing the request.

Example

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

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

root!.setPageExtensions("bbjsp")
root!.setCommandExtensions("cmd")

condig!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration

BBjJettyContextConfiguration::getCommandExtensions()