BBjJettyContextConfiguration::getHosts


Description

In BBj 15.0 and higher, each Jetty context can be defined to respond to requests made to one or more hosts.

If no hosts are configured within a context then that context will respond to all host-names that resolve to the server.

This method gets a BBjVector containing the configures hosts.

Syntax

Return Value

Method

BBjVector

getHosts()

Parameters

None.

Return Value

a BBjVector of Strings

Remarks

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

declare BBjVector hosts!
hosts! = root!.getHosts()
sz = hosts!.size()
if (sz) then
    for i = 0 to sz-1
        print hosts!.get(i)
    next i
endif

See Also

BBjAPI

BBjJettyContextConfiguration

BBjVector