Class RootContextLookup<StartContext extends BaseContext,RootContext extends BaseContext>
- java.lang.Object
-
- org.opensaml.messaging.context.navigate.RootContextLookup<StartContext,RootContext>
-
- Type Parameters:
StartContext- type of the starting contextRootContext- type of the root context
- All Implemented Interfaces:
Function<StartContext,RootContext>,ContextDataLookupFunction<StartContext,RootContext>
public class RootContextLookup<StartContext extends BaseContext,RootContext extends BaseContext> extends Object implements ContextDataLookupFunction<StartContext,RootContext>
AContextDataLookupFunctionthat gets the root of context tree.
-
-
Field Summary
Fields Modifier and Type Field Description private Class<RootContext>clazClass type being returned.
-
Constructor Summary
Constructors Constructor Description RootContextLookup()Constructor.RootContextLookup(Class<RootContext> targetClass)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RootContextapply(BaseContext input)
-
-
-
Field Detail
-
claz
@Nullable private final Class<RootContext extends BaseContext> claz
Class type being returned.
-
-
Constructor Detail
-
RootContextLookup
public RootContextLookup()
Constructor.
-
RootContextLookup
public RootContextLookup(@Nonnull @ParameterName(name="targetClass") Class<RootContext> targetClass)Constructor.- Parameters:
targetClass- the type to return
-
-
Method Detail
-
apply
@Nullable public RootContext apply(@Nullable BaseContext input)
- Specified by:
applyin interfaceFunction<StartContext extends BaseContext,RootContext extends BaseContext>
-
-