BBjJettyContextConfiguration::removeHost


Description

In BBj 15.0 and higher, this method will remove a host entry from the Jetty Context

Syntax

Return Value

Method

void

removeHost(string host)

Parameters

Variable

Description

host

the host to remove

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!.removeHost("localhost")

config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration