BBjJettyContextConfiguration::addBBxServlet

Description

In BBj 21.00 and higher, this method adds a BBxServlet to the BBjJettyContextConfiguration and returns the added BBxServlet. Throws a BBjException if the servlet cannot be added.

Syntax

Return Value Method

BBxServlet

addBBxServlet(String mapping, String source, String classname)

addBBxServlet(String mapping, String source, String classname, String method)

addBBxServlet(String mapping, String source, String classname, String method, String config)

addBBxServlet(String mapping, String source, String classname, String method, int enabled)

addBBxServlet(String mapping, String source, String classname, String method, String config, int enabled)

addBBxServlet(String classname, String mapping, String source)

(Alternate argument order for compatibility with BBjspServlets)

addBBxServlet(String classname, String mapping, String source, String config)

(Alternate argument order for compatibility with BBjspServlets)

Parameters

Variable Description
mapping The servlet mapping
source The BBj source file for the servlet
classname The name of the custom class for the servlet, defined in the source file.
method The name of the custom service method for the servlet, defined in the source file
config The absolute path to the config file for the servlet
enabled An int indicating whether to enable the servlet (0 to disable, 1 to enable)

Return Value

Returns the newly added BBxServlet.

ClosedVersion History

  • BBj 21.00: BBxServlet introduced.

See Also

BBjAPI

BBxServlet

BBxServlet Tutorial

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.