Package org.eclipse.jetty.util
Interface Attributes
- All Known Implementing Classes:
AntWebAppContext
,AttributeContainerMap
,Attributes.Wrapper
,AttributesMap
,ContextHandler
,ContextHandler.Context
,ContextHandler.StaticContext
,HttpConversation
,HttpSpiContextHandler
,MovedContextHandler
,ProxyConnectionFactory.ProxyEndPoint
,Server
,ServletAttributes
,ServletContextHandler
,ServletContextHandler.Context
,WebAppContext
,WebAppContext.Context
public interface Attributes
Attributes.
Interface commonly used for storing attributes.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getAttribute
(String name) default Enumeration<String>
void
removeAttribute
(String name) void
setAttribute
(String name, Object attribute) static Attributes
unwrap
(Attributes attributes) Unwrap allAttributes.Wrapper
s of the attributesstatic <T extends Attributes.Wrapper>
Tunwrap
(Attributes attributes, Class<T> target) Unwrap attributes to a specific attributeAttributes.Wrapper
.
-
Method Details
-
removeAttribute
-
setAttribute
-
getAttribute
-
getAttributeNameSet
-
getAttributeNames
-
clearAttributes
void clearAttributes() -
unwrap
Unwrap allAttributes.Wrapper
s of the attributes- Parameters:
attributes
- The attributes to unwrap, which may be aAttributes.Wrapper
.- Returns:
- The core attributes
-
unwrap
Unwrap attributes to a specific attributeAttributes.Wrapper
.- Type Parameters:
T
- The type of the targetAttributes.Wrapper
.- Parameters:
attributes
- The attributes to unwrap, which may be aAttributes.Wrapper
target
- The targetAttributes.Wrapper
class.- Returns:
- The outermost
Attributes.Wrapper
of the matching type of null if not found.
-