Class AbstractAttributeResolutionLookupFunction<Type>
java.lang.Object
net.shibboleth.idp.attribute.resolver.context.navigate.AbstractAttributeResolutionLookupFunction<Type>
- Type Parameters:
Type
- the type of data returned by the function
- All Implemented Interfaces:
Function<ProfileRequestContext,
,Type> ContextDataLookupFunction<ProfileRequestContext,
Type>
- Direct Known Subclasses:
AttributeIssuerIdLookupFunction
,AttributePrincipalLookupFunction
,AttributeRecipientIdLookupFunction
,ResolutionLabelLookupFunction
public abstract class AbstractAttributeResolutionLookupFunction<Type>
extends Object
implements ContextDataLookupFunction<ProfileRequestContext,Type>
Base class for a function that takes a
ProfileRequestContext
and requires access to an
AttributeResolutionContext
.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used to locate theAttributeResolutionContext
associated with a givenProfileRequestContext
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ProfileRequestContext input) protected abstract Type
Method that performs eventual lookup of target data.void
setAttributeResolutionContextLookupStrategy
(Function<ProfileRequestContext, AttributeResolutionContext> strategy) Sets the strategy used to locate theAttributeResolutionContext
associated with a givenProfileRequestContext
.
-
Field Details
-
attributeResolutionContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,AttributeResolutionContext> attributeResolutionContextLookupStrategyStrategy used to locate theAttributeResolutionContext
associated with a givenProfileRequestContext
.
-
-
Constructor Details
-
AbstractAttributeResolutionLookupFunction
public AbstractAttributeResolutionLookupFunction()Constructor.
-
-
Method Details
-
setAttributeResolutionContextLookupStrategy
public void setAttributeResolutionContextLookupStrategy(@Nonnull Function<ProfileRequestContext, AttributeResolutionContext> strategy) Sets the strategy used to locate theAttributeResolutionContext
associated with a givenProfileRequestContext
.- Parameters:
strategy
- strategy used to locate theAttributeResolutionContext
associated with a givenProfileRequestContext
-
apply
- Specified by:
apply
in interfaceFunction<ProfileRequestContext,
Type>
-
doApply
Method that performs eventual lookup of target data.- Parameters:
input
- the context to examine- Returns:
- the data to return
-