public interface ILcdServletContext
An interface for a servlet context configuration. ILcdInitializationConfig
contains the configuration
for one specific instance, while this interface contains the configuration for a group of instances. For example:
when starting a web app with 3 servlets, and all servlets use a common cache, the configuration parameters,
and the cache itself, can be stored in the ILcdServletContext
.
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String aName)
Returns the attribute with the given name, or
null if there is no attribute by that name. |
Enumeration<String> |
getAttributeNames()
Returns an enumeration of all available attribute names.
|
String |
getParameter(String aName)
Returns the value of the parameter with the given name.
|
Enumeration<String> |
getParameterNames()
Returns an enumeration of all available parameter names.
|
void |
removeAttribute(String aName)
Removes the attribute with the given name.
|
void |
setAttribute(String aName,
Object aObject)
Sets an attribute with the given name.
|
String getParameter(String aName)
aName
- a parameter nameEnumeration<String> getParameterNames()
Object getAttribute(String aName)
Returns the attribute with the given name, or null
if there is no attribute by that name.
An attribute allows to give additional information not already provided by the
parameters. A list of supported attributes can be retrieved using
getAttributeNames()
.
aName
- the attribute namenull
if there is no attribute by that name.Enumeration<String> getAttributeNames()
void setAttribute(String aName, Object aObject)
aName
- the attribute nameaObject
- the attribute objectvoid removeAttribute(String aName)
aName
- the attribute name