BBjJettyContextConfiguration::addHost


Description

In BBj 15.0 and higher, this method will add a host entry to the Jetty Context

Syntax

Return Value

Method

void

addHost(string hostname)

Parameters

Variable

Description

hostname

the hostname

Return Value

None.

Remarks

None.

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()

rem '-- Add a new host to the root context
root!.addHost("localhost")

config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration