Class Attributes.Mapped
java.lang.Object
org.eclipse.jetty.util.Attributes.Mapped
- All Implemented Interfaces:
 Attributes
- Enclosing interface:
 Attributes
An Attributes implementation backed by a 
ConcurrentHashMap.- 
Nested Class Summary
Nested classes/interfaces inherited from interface Attributes
Attributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.Synthetic, Attributes.Wrapper - 
Field Summary
Fields inherited from interface Attributes
NULL - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(Attributes attributes) voidClear all attribute namesbooleangetAttribute(String name) Get an attribute by name.Get the immutable set of attribute names.inthashCode()removeAttribute(String name) Remove an attributesetAttribute(String name, Object attribute) Set an attributeintsize()toString() 
- 
Constructor Details
- 
Mapped
public Mapped() - 
Mapped
 - 
Mapped
 
 - 
 - 
Method Details
- 
asAttributeMap
- Specified by:
 asAttributeMapin interfaceAttributes
 - 
removeAttribute
Description copied from interface:AttributesRemove an attribute- Specified by:
 removeAttributein interfaceAttributes- Parameters:
 name- the attribute to remove- Returns:
 - the value of the attribute if removed, else 
null 
 - 
setAttribute
Description copied from interface:AttributesSet an attribute- Specified by:
 setAttributein interfaceAttributes- Parameters:
 name- the attribute to setattribute- the value to set. A null value is equivalent to removing the attribute.- Returns:
 - the previous value of the attribute if set, else 
null 
 - 
getAttribute
Description copied from interface:AttributesGet an attribute by name. Some attributes may be "hidden" attributes, in that they are only found by an explicit call togetAttribute(String)and they do not otherwise appear inAttributes.getAttributeNameSet()orAttributes.asAttributeMap().- Specified by:
 getAttributein interfaceAttributes- Parameters:
 name- the attribute to get- Returns:
 - the value of the attribute, or 
nullif no such attribute exists 
 - 
getAttributeNameSet
Description copied from interface:AttributesGet the immutable set of attribute names.- Specified by:
 getAttributeNameSetin interfaceAttributes- Returns:
 - Set of attribute names, or an empty set if there are no attributes.
 
 - 
clearAttributes
public void clearAttributes()Description copied from interface:AttributesClear all attribute names- Specified by:
 clearAttributesin interfaceAttributes
 - 
size
public int size() - 
toString
 - 
addAll
 - 
hashCode
public int hashCode()- Specified by:
 hashCodein interfaceAttributes- Overrides:
 hashCodein classObject
 - 
equals
- Specified by:
 equalsin interfaceAttributes- Overrides:
 equalsin classObject
 
 -