Class RecursiveTypedParentContextLookup<StartContext extends BaseContext,ParentContext extends BaseContext>
java.lang.Object
org.opensaml.messaging.context.navigate.RecursiveTypedParentContextLookup<StartContext,ParentContext>
- Type Parameters:
StartContext
- type of starting contextParentContext
- type of the parent context
- All Implemented Interfaces:
Function<StartContext,
,ParentContext> ContextDataLookupFunction<StartContext,
ParentContext>
- Direct Known Subclasses:
ParentProfileRequestContextLookup
public class RecursiveTypedParentContextLookup<StartContext extends BaseContext,ParentContext extends BaseContext>
extends Object
implements ContextDataLookupFunction<StartContext,ParentContext>
A
ContextDataLookupFunction
that recurses up the parent chain of the input via
BaseContext.getParent()
, and returns the first parent context that is an instance
of the specified type.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecursiveTypedParentContextLookup
(Class<ParentContext> targetClass) Constructor. -
Method Summary
-
Field Details
-
parentClass
The target parent class.
-
-
Constructor Details
-
RecursiveTypedParentContextLookup
public RecursiveTypedParentContextLookup(@Nonnull @ParameterName(name="targetClass") Class<ParentContext> targetClass) Constructor.- Parameters:
targetClass
- the target parent class
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<StartContext extends BaseContext,
ParentContext extends BaseContext>
-