BBjJettyContextConfiguration::setHttpPort


Description

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

Syntax

Return Value

Method

void

setHttpPort(int port)

Parameters

Variable

Description

port

The port number.

Return Value

None.

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

root!.setHttpPort("8080")

condig!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration