BBjJettyContextConfiguration::getJavaServlet


Description

In BBj 15.0 and higher, this method gets the BBjJavaServletConfiguration for the specified servlet

Syntax

Return Value

Method

BBjJavaServletConfiguration

getJavaServlet(string name, string mapping)

Parameters

Variable

Description

mapping

mapped URL of a configured Java servlet

name

the classname of a configured Java servlet

Return Value

a BBjJavaServletConfiguration for the specified servlet

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjVector vect_servlets!
declare BBjNumber sz
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()
declare BBjJavaServletConfiguration servlet!
servlet! = root!.getJavaServlet("com.wibble.SomeServlet","/*")

See Also

BBjAPI

BBjJettyContextConfiguration

BBjJavaServletConfiguration