Servlet::Config - configuration super interface
my @params = $config->getInitParameterNames(); for my $p (@params) { print sprintf "%s: %s\n", $p, $config->getInitParameter($p); } my $context = $config->getServletContext();
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.
Returns the value of the named initialization parameter, or undef if the parameter does not exist.
Parameters:
The name of the initialization parameter
Returns an array containing the names of the servlet's initialization parameters, or an empty array if the servlet has no initialization parameters.
Returns the Servlet::ServletContext object representing the web context in which the caller is executing.
Servlet::ServletContext
Brian Moseley, bcm@maz.org
To install Servlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Servlet
CPAN shell
perl -MCPAN -e shell install Servlet
For more information on module installation, please visit the detailed CPAN module installation guide.