The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Servlet::ServletConfig - servlet configuration interface

SYNOPSIS

  my $name = $config->getServletName();

  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 interface for an object used by a servlet container to pass configuration information to a Servlet::Servlet during initialization. The interface extends Servlet::Config.

METHODS

getServletName()

Returns the name of the servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.

SEE ALSO

Servlet::Config

AUTHOR

Brian Moseley, bcm@maz.org