public interface Registration
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Registration.Dynamic |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName() |
String |
getInitParameter(String name)
Get the value of an initialisation parameter.
|
Map<String,String> |
getInitParameters()
Get the names and values of all the initialisation parameters.
|
String |
getName() |
boolean |
setInitParameter(String name,
String value)
Add an initialisation parameter if not already added.
|
Set<String> |
setInitParameters(Map<String,String> initParameters)
Add multiple initialisation parameters.
|
String getName()
String getClassName()
boolean setInitParameter(String name, 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
existedIllegalArgumentException - if name or value is nullIllegalStateException - if the ServletContext associated with this
registration has already been initialisedString getInitParameter(String name)
name - The initialisation parameter whose value is requiredSet<String> setInitParameters(Map<String,String> initParameters)
initParameters - The initialisation parameters to addIllegalArgumentException - if any of the supplied initialisation
parameters have a null name or valueIllegalStateException - if the ServletContext associated with this
registration has already been initialisedCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.