BBjJettyContextConfiguration::getHttpPort

Description

In BBj 18.0 and higher, this method gets the assigned HTTP port for the BBjJettyContext.

Syntax

Return Value

Method

int

getHttpPort()

Parameters

None.

Return Value

Returns the HTTP port number.

Remarks

On Unix-style operating systems such as Linux, the port number should normally be above 1024 unless BBjServices is running as root.

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

print root!.getHttpPort()