Package org.eclipse.jetty.util
Class AttributesMap
- java.lang.Object
-
- org.eclipse.jetty.util.AttributesMap
-
- All Implemented Interfaces:
Attributes
,Dumpable
- Direct Known Subclasses:
ContextHandler.StaticContext
,HttpConversation
,ProxyConnectionFactory.ProxyEndPoint
public class AttributesMap extends java.lang.Object implements Attributes, Dumpable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
Attributes.Wrapper
-
-
Constructor Summary
Constructors Constructor Description AttributesMap()
AttributesMap(AttributesMap attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(Attributes attributes)
void
clearAttributes()
java.lang.String
dump()
void
dump(java.lang.Appendable out, java.lang.String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.java.lang.Object
getAttribute(java.lang.String name)
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>
getAttributeEntrySet()
java.util.Enumeration<java.lang.String>
getAttributeNames()
static java.util.Enumeration<java.lang.String>
getAttributeNamesCopy(Attributes attrs)
java.util.Set<java.lang.String>
getAttributeNameSet()
void
removeAttribute(java.lang.String name)
void
setAttribute(java.lang.String name, java.lang.Object attribute)
int
size()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AttributesMap
public AttributesMap()
-
AttributesMap
public AttributesMap(AttributesMap attributes)
-
-
Method Detail
-
removeAttribute
public void removeAttribute(java.lang.String name)
- Specified by:
removeAttribute
in interfaceAttributes
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object attribute)
- Specified by:
setAttribute
in interfaceAttributes
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in interfaceAttributes
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames
in interfaceAttributes
-
getAttributeNameSet
public java.util.Set<java.lang.String> getAttributeNameSet()
- Specified by:
getAttributeNameSet
in interfaceAttributes
-
getAttributeEntrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> getAttributeEntrySet()
-
getAttributeNamesCopy
public static java.util.Enumeration<java.lang.String> getAttributeNamesCopy(Attributes attrs)
-
clearAttributes
public void clearAttributes()
- Specified by:
clearAttributes
in interfaceAttributes
-
size
public int size()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
addAll
public void addAll(Attributes attributes)
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
-
-