public interface Registration
Modifier and Type | Interface and Description |
---|---|
static interface |
Registration.Dynamic |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName() |
java.lang.String |
getInitParameter(java.lang.String name)
Get the value of an initialisation parameter.
|
java.util.Map<java.lang.String,java.lang.String> |
getInitParameters()
Get the names and values of all the initialisation parameters.
|
java.lang.String |
getName() |
boolean |
setInitParameter(java.lang.String name,
java.lang.String value)
Add an initialisation parameter if not already added.
|
java.util.Set<java.lang.String> |
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
Add multiple initialisation parameters.
|
java.lang.String getName()
java.lang.String getClassName()
boolean setInitParameter(java.lang.String name, java.lang.String value)
name
- Name of initialisation parametervalue
- Value of initialisation parametertrue
if the initialisation parameter was set,
false
if the initialisation parameter was not set
because an initialisation parameter of the same name already
existedjava.lang.IllegalArgumentException
- if name or value is null
java.lang.IllegalStateException
- if the ServletContext associated with this
registration has already been initialisedjava.lang.String getInitParameter(java.lang.String name)
name
- The initialisation parameter whose value is requiredjava.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
initParameters
- The initialisation parameters to addjava.lang.IllegalArgumentException
- if any of the supplied initialisation
parameters have a null name or valuejava.lang.IllegalStateException
- if the ServletContext associated with this
registration has already been initialisedjava.util.Map<java.lang.String,java.lang.String> getInitParameters()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.