Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Servlet::Config(3)    User Contributed Perl Documentation   Servlet::Config(3)

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:

	   $name
	       The name	of the initialization parameter

       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
       Servlet::ServletContext

AUTHOR
       Brian Moseley, bcm@maz.org

perl v5.32.0			  2001-07-13		    Servlet::Config(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Servlet::Config&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help