Class ImmutableSessionAttributesFilter
- java.lang.Object
-
- org.wildfly.clustering.web.cache.session.attributes.coarse.ImmutableSessionAttributesFilter
-
- All Implemented Interfaces:
SessionAttributesFilter
public class ImmutableSessionAttributesFilter extends Object implements SessionAttributesFilter
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ImmutableSessionAttributesFilter(ImmutableSession session)ImmutableSessionAttributesFilter(ImmutableSessionAttributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Map<String,T>getAttributes(Class<T> targetClass)Returns the attributes who values implement the specified type.
-
-
-
Constructor Detail
-
ImmutableSessionAttributesFilter
public ImmutableSessionAttributesFilter(ImmutableSession session)
-
ImmutableSessionAttributesFilter
public ImmutableSessionAttributesFilter(ImmutableSessionAttributes attributes)
-
-
Method Detail
-
getAttributes
public <T> Map<String,T> getAttributes(Class<T> targetClass)
Description copied from interface:SessionAttributesFilterReturns the attributes who values implement the specified type.- Specified by:
getAttributesin interfaceSessionAttributesFilter- Type Parameters:
T- the target instanceof type- Parameters:
targetClass- a target class/interface.- Returns:
- a map of session attribute names and values that are instances of the specified type.
-
-