Class SpringExpressionContextLookupFunction<T extends org.opensaml.messaging.context.BaseContext,​U>

  • Type Parameters:
    T - the specific type of context
    U - output type
    All Implemented Interfaces:
    Function<T,​U>, org.opensaml.messaging.context.navigate.ContextDataLookupFunction<T,​U>

    public class SpringExpressionContextLookupFunction<T extends org.opensaml.messaging.context.BaseContext,​U>
    extends net.shibboleth.ext.spring.util.SpringExpressionFunction<T,​U>
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<T,​U>
    A Function over a BaseContext which calls out to a Spring Expression.
    Since:
    3.3.0
    • Constructor Detail

      • SpringExpressionContextLookupFunction

        public SpringExpressionContextLookupFunction​(@Nonnull @ParameterName(name="inClass")
                                                     Class<T> inClass,
                                                     @Nonnull @NotEmpty @ParameterName(name="expression")
                                                     String expression)
        Constructor.
        Parameters:
        inClass - the class we accept as input.
        expression - the expression to evaluate.
      • SpringExpressionContextLookupFunction

        public SpringExpressionContextLookupFunction​(@Nonnull @ParameterName(name="inClass")
                                                     Class<T> inClass,
                                                     @Nonnull @NotEmpty @ParameterName(name="expression")
                                                     String expression,
                                                     @ParameterName(name="outputType") @Nullable
                                                     Class<U> outputType)
        Constructor.
        Parameters:
        inClass - the class we accept as input.
        expression - the expression to evaluate.
        outputType - the type to test against.