
BBjspServletConfiguration
Creation Path
BBjAPI| +--BBjAdmin| +--BBjJettyServerConfiguration| +--BBjJettyContextConfiguration| +--BBjspServletConfiguration
Description
In BBj 17.0 and higher, BBJSP Servlets can be programmatically configured though the AdminAPI.
This class is used to configure a BBjspServlet that will be automatically deployed within a BBjJettyContextConfiguration. The configuration comprises 3 elements.
-
MAPPING - configures how the servlet can be referenced
-
PROGRAM - the source file containing the servlet code
-
CLASS - the class within the source file
-
CONFIG - the BBj configuration file to use during execution
Creation
The BBjspServletConfiguration is created through the following BBjJettyContextConfiguration methods:
Return Value |
Method |
---|---|
BBjspServletConfiguration |
addBBjspServlet(string classname, string mapping, string source) |
BBjspServletConfiguration |
addBBjspServlet(string classname, string mapping, string source, string config) |
BBjspServletConfiguration |
getBBjspServlet(string mapping) |
Methods of BBjspServletConfiguration
Return Value |
Method |
---|---|
void |
addParam(string name, string value) |
void |
|
string |
|
string |
|
string |
|
string |
getParameter(string name) |
string |
|
string |
|
string |
getUser() |
string |
|
void |
setConfig(string config) |
void |
setTerminalAlias(string alias) |
void |
setUser(string user) |
void |
setWorkingDir(string directory) |
Example
declare
BBjAPI api! |