Class ParentContextLookup<StartContext extends BaseContext,ParentContext extends BaseContext>
- java.lang.Object
-
- org.opensaml.messaging.context.navigate.ParentContextLookup<StartContext,ParentContext>
-
- Type Parameters:
StartContext- type of starting contextParentContext- type of the parent context
- All Implemented Interfaces:
Function<StartContext,ParentContext>,ContextDataLookupFunction<StartContext,ParentContext>
public class ParentContextLookup<StartContext extends BaseContext,ParentContext extends BaseContext> extends Object implements ContextDataLookupFunction<StartContext,ParentContext>
AContextDataLookupFunctionthat gets the parent of a given context.
-
-
Field Summary
Fields Modifier and Type Field Description private Class<ParentContext>parentTypeParent type.
-
Constructor Summary
Constructors Constructor Description ParentContextLookup(Class<ParentContext> type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParentContextapply(StartContext input)
-
-
-
Field Detail
-
parentType
@Nonnull private final Class<ParentContext extends BaseContext> parentType
Parent type.
-
-
Constructor Detail
-
ParentContextLookup
public ParentContextLookup(@Nonnull @ParameterName(name="type") Class<ParentContext> type)Constructor.- Parameters:
type- parent context type to look up
-
-
Method Detail
-
apply
@Nullable public ParentContext apply(@Nullable StartContext input)
- Specified by:
applyin interfaceFunction<StartContext extends BaseContext,ParentContext extends BaseContext>
-
-