Package cloud.piranha.webapp.impl
Class DefaultAttributeManager
- java.lang.Object
-
- cloud.piranha.webapp.impl.DefaultAttributeManager
-
- All Implemented Interfaces:
AttributeManager
public class DefaultAttributeManager extends Object implements AttributeManager
The default AttributeManager.- Author:
- Manfred Riem ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>
attributes
Stores the attributes.
-
Constructor Summary
Constructors Constructor Description DefaultAttributeManager()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
Get the attribute.Enumeration<String>
getAttributeNames()
Get the attribute names.void
removeAttribute(String name)
Remove the attribute.void
setAttribute(String name, Object value)
Set the attribute.
-
-
-
Method Detail
-
getAttribute
public Object getAttribute(String name)
Get the attribute.- Specified by:
getAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.- Returns:
- the value.
-
getAttributeNames
public Enumeration<String> getAttributeNames()
Get the attribute names.- Specified by:
getAttributeNames
in interfaceAttributeManager
- Returns:
- the attribute names.
-
removeAttribute
public void removeAttribute(String name)
Remove the attribute.- Specified by:
removeAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.
-
setAttribute
public void setAttribute(String name, Object value)
Set the attribute.- Specified by:
setAttribute
in interfaceAttributeManager
- Parameters:
name
- the name.value
- the value.
-
-