BBjJettyContextConfiguration::setDocBase


Description

In BBj 15.0 and higher, this method sets the docbase for the Jetty Context

Syntax

Return Value

Method

void

setDocBase(string docBase)

Parameters

Variable

Description

docBase

the docbase

Return Value

None.

Remarks

The docbase is the location of static content that should be accessible. The static content can include html files, images, style-sheets or indeed any file you need to serve within the context.

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!.setDocbase("/opt/www/myweb")

See Also

BBjAPI

BBjJettyContextConfiguration