BBjJettyContextConfiguration::getPath


Description

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

Syntax

Return Value

Method

String

getPath()

Parameters

None.

Return Value

the path for the context

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 PRINTS 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()
print "Path = " + str(root!.getPath())

See Also

BBjAPI

BBjJettyContextConfiguration