Class FlowDescriptorLookupFunction<T extends ProfileInterceptorFlowDescriptor>
java.lang.Object
net.shibboleth.idp.consent.logic.impl.FlowDescriptorLookupFunction<T>
- Type Parameters:
T
- the profile interceptor flow descriptor type to locate
- All Implemented Interfaces:
Function<ProfileRequestContext,
T>
public class FlowDescriptorLookupFunction<T extends ProfileInterceptorFlowDescriptor>
extends Object
implements Function<ProfileRequestContext,T>
Function that returns a profile interceptor flow descriptor from a profile request context using a lookup strategy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionProfile interceptor context lookup strategy.Profile interceptor flow descriptor type to look up. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ProfileRequestContext input) void
setInterceptorContextlookupStrategy
(Function<ProfileRequestContext, ProfileInterceptorContext> strategy) Set the interceptor context lookup strategy.
-
Field Details
-
interceptorFlowDescriptorType
@Nonnull private final Class<T extends ProfileInterceptorFlowDescriptor> interceptorFlowDescriptorTypeProfile interceptor flow descriptor type to look up. -
interceptorContextlookupStrategy
@Nonnull private Function<ProfileRequestContext,ProfileInterceptorContext> interceptorContextlookupStrategyProfile interceptor context lookup strategy.
-
-
Constructor Details
-
FlowDescriptorLookupFunction
Constructor.- Parameters:
type
- profile interceptor flow descriptor type to look up
-
-
Method Details
-
setInterceptorContextlookupStrategy
public void setInterceptorContextlookupStrategy(@Nonnull Function<ProfileRequestContext, ProfileInterceptorContext> strategy) Set the interceptor context lookup strategy.- Parameters:
strategy
- interceptor context lookup strategy
-
apply
- Specified by:
apply
in interfaceFunction<ProfileRequestContext,
T extends ProfileInterceptorFlowDescriptor>
-