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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAttribute(String name) default Enumeration<String>voidremoveAttribute(String name) voidsetAttribute(String name, Object attribute) static Attributesunwrap(Attributes attributes) Unwrap allAttributes.Wrappers 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.Wrappers 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.Wrappertarget- The targetAttributes.Wrapperclass.- Returns:
- The outermost
Attributes.Wrapperof the matching type of null if not found.
-