Class MessageContextLookup<StartContext extends BaseContext>
- java.lang.Object
-
- org.opensaml.messaging.context.navigate.MessageContextLookup<StartContext>
-
- Type Parameters:
StartContext- the starting context type
- All Implemented Interfaces:
Function<StartContext,MessageContext>,ContextDataLookupFunction<StartContext,MessageContext>
public class MessageContextLookup<StartContext extends BaseContext> extends Object implements ContextDataLookupFunction<StartContext,MessageContext>
A lookup function for resolving either the inbound or outboundMessageContextrelative to a particularBaseContext.This would usually be used in composing other lookup functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageContextLookup.DirectionUsed to indicate the target message context.
-
Field Summary
Fields Modifier and Type Field Description private MessageContextLookup.DirectiondirThe message context to evaluate as the entityContext parent.private Function<BaseContext,InOutOperationContext>opContextLookupThe operation context lookup.
-
Constructor Summary
Constructors Constructor Description MessageContextLookup(MessageContextLookup.Direction direction)Constructor.MessageContextLookup(MessageContextLookup.Direction direction, Function<BaseContext,InOutOperationContext> lookup)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageContextapply(BaseContext baseContext)
-
-
-
Field Detail
-
dir
@Nonnull private MessageContextLookup.Direction dir
The message context to evaluate as the entityContext parent.
-
opContextLookup
@Nonnull private Function<BaseContext,InOutOperationContext> opContextLookup
The operation context lookup. Defaults toRecursiveTypedParentContextLookup.
-
-
Constructor Detail
-
MessageContextLookup
public MessageContextLookup(@Nonnull @ParameterName(name="direction") MessageContextLookup.Direction direction)Constructor.- Parameters:
direction- the direction in which to operate.
-
MessageContextLookup
public MessageContextLookup(@Nonnull @ParameterName(name="direction") MessageContextLookup.Direction direction, @Nonnull @ParameterName(name="lookup") Function<BaseContext,InOutOperationContext> lookup)Constructor.- Parameters:
direction- the direction in which to operate.lookup- the operation context lookup
-
-
Method Detail
-
apply
public MessageContext apply(@Nullable BaseContext baseContext)
- Specified by:
applyin interfaceFunction<StartContext extends BaseContext,MessageContext>
-
-