Class MessageContextLookupFunctionAdaptor<ResultType>
java.lang.Object
net.shibboleth.oidc.profile.config.navigate.MessageContextLookupFunctionAdaptor<ResultType>
- Type Parameters:
ResultType- the result type of the adapted (composed) function
- All Implemented Interfaces:
Function<MessageContext,ResultType>
@ThreadSafe
public class MessageContextLookupFunctionAdaptor<ResultType>
extends Object
implements Function<MessageContext,ResultType>
Adaptor function that allows a profile request context lookup function to work inside a message handler.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<ProfileRequestContext,ResultType> The adapted function.private Function<MessageContext,ProfileRequestContext> Strategy used to locate theProfileRequestContextassociated with a givenMessageContext. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionapply(MessageContext messageContext) private Function<MessageContext,ProfileRequestContext> Get the profile request context lookup strategy used to adapt the message context.voidSet the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.
-
Field Details
-
profileRequestContextLookupStrategy
Strategy used to locate theProfileRequestContextassociated with a givenMessageContext. -
adaptedFunction
The adapted function.
-
-
Constructor Details
-
MessageContextLookupFunctionAdaptor
public MessageContextLookupFunctionAdaptor(@Nonnull Function<ProfileRequestContext, ResultType> function) Constructor.- Parameters:
function- the composed function that is adapted to work inside a MessageContext input.
-
-
Method Details
-
setProfileRequestContextLookupStrategy
public void setProfileRequestContextLookupStrategy(@Nonnull Function<MessageContext, ProfileRequestContext> strategy) Set the strategy used to locate theProfileRequestContextassociated with a givenMessageContext.- Parameters:
strategy- lookup strategy
-
getProfileRequestContextLookupStrategy
Get the profile request context lookup strategy used to adapt the message context.- Returns:
- the profile request context lookup strategy
-
apply
- Specified by:
applyin interfaceFunction<MessageContext,ResultType>
-