- All Known Subinterfaces:
FilterEnvironment
,FilterRegistration
,FilterRegistration.Dynamic
,Registration.Dynamic
,ServletEnvironment
,ServletRegistration
,ServletRegistration.Dynamic
- All Known Implementing Classes:
DefaultFilterEnvironment
,DefaultServletEnvironment
public interface Registration
The Registration API.
- Author:
- Manfred Riem ([email protected])
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Registration.Dynamic
The Registration.Dynamic API. -
Method Summary
Modifier and Type Method Description java.lang.String
getClassName()
Get the class name.java.lang.String
getInitParameter(java.lang.String name)
Get the init parameter.java.util.Map<java.lang.String,java.lang.String>
getInitParameters()
Get the init parameters.java.lang.String
getName()
Get the name.boolean
setInitParameter(java.lang.String name, java.lang.String value)
Set the init parameter.java.util.Set<java.lang.String>
setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)
Set the init parameters.
-
Method Details
-
getClassName
java.lang.String getClassName()Get the class name.- Returns:
- the class name.
-
getInitParameter
java.lang.String getInitParameter(java.lang.String name)Get the init parameter.- Parameters:
name
- the name.- Returns:
- the value, or null if not found.
-
getInitParameters
java.util.Map<java.lang.String,java.lang.String> getInitParameters()Get the init parameters.- Returns:
- the init parameters.
-
getName
java.lang.String getName()Get the name.- Returns:
- the name.
-
setInitParameter
boolean setInitParameter(java.lang.String name, java.lang.String value)Set the init parameter.- Parameters:
name
- the name.value
- the value.- Returns:
- true if it was set, false otherwise.
-
setInitParameters
java.util.Set<java.lang.String> setInitParameters(java.util.Map<java.lang.String,java.lang.String> initParameters)Set the init parameters.- Parameters:
initParameters
- the init parameters.- Returns:
- the init parameters that could NOT be set.
-