Package com.luciad.ogc.common
Interface ILcdServletContext
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
.
- Since:
- 2017.0
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String aName) Returns the attribute with the given name, ornull
if there is no attribute by that name.Returns an enumeration of all available attribute names.getParameter
(String aName) Returns the value of the parameter with the given name.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.
-
Method Details
-
getParameter
Returns the value of the parameter with the given name.- Parameters:
aName
- a parameter name- Returns:
- the value of the parameter with the given name.
-
getParameterNames
Enumeration<String> getParameterNames()Returns an enumeration of all available parameter names.- Returns:
- an enumeration of all available parameter names.
-
getAttribute
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()
.- Parameters:
aName
- the attribute name- Returns:
- the attribute with the given name, or
null
if there is no attribute by that name.
-
getAttributeNames
Enumeration<String> getAttributeNames()Returns an enumeration of all available attribute names.- Returns:
- an enumeration of all available attribute names.
-
setAttribute
Sets an attribute with the given name.- Parameters:
aName
- the attribute nameaObject
- the attribute object
-
removeAttribute
Removes the attribute with the given name.- Parameters:
aName
- the attribute name
-