NAME
Servlet::Config - configuration super interface
SYNOPSIS
my @params = $config->getInitParameterNames();
for my $p (@params) {
print sprintf "%s: %s\n", $p, $config->getInitParameter($p);
}
my $context = $config->getServletContext();
DESCRIPTION
This is the super interface for objects in the Servlet API that pass configuration information to Servlets or Filters during initialization. The configuration information contains initialization parameters, which are a set of name/value pairs, and a Servlet::ServletContext object, which gives the calling object information about the web container.
METHODS
- getInitParameter($name)
-
Returns the value of the named initialization parameter, or undef if the parameter does not exist.
Parameters:
- getInitParameterNames()
-
Returns an array containing the names of the servlet's initialization parameters, or an empty array if the servlet has no initialization parameters.
- getServletContext()
-
Returns the Servlet::ServletContext object representing the web context in which the caller is executing.
SEE ALSO
AUTHOR
Brian Moseley, bcm@maz.org