BBjJettyContextConfiguration::setPath


Description

In BBj 15.0 and higher, this method sets the path of the context

Syntax

   

Return Value

Method

void

setPath(string path)

Parameters

Variable

Description

path

the Path for the context

Return Value

None.

Remarks

The context path is the prefix of a URL path that is used to select the context(s) to which an incoming request is passed. Typically a URL in a BBj servlet server is of the format http://hostname:8888/contextPath/servlet/pathInfo, where each of the path elements can be zero or more / separated elements.

Example

REM === THIS PROGRAM SETS THE PATH FOR THE BBJ CONTEXT ===
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!.setPath("/")

See Also

BBjAPI

BBjJettyContextConfiguration