Class ScriptedContextLookupFunction<T extends org.opensaml.messaging.context.BaseContext>

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

    public class ScriptedContextLookupFunction<T extends org.opensaml.messaging.context.BaseContext>
    extends net.shibboleth.utilities.java.support.scripting.AbstractScriptEvaluator
    implements org.opensaml.messaging.context.navigate.ContextDataLookupFunction<T,​Object>
    A Function over a BaseContext which calls out to a supplied script.
    • Field Detail

      • inputClass

        @Nonnull
        private final Class<T extends org.opensaml.messaging.context.BaseContext> inputClass
        What class we want the input to test against.
    • Constructor Detail

      • ScriptedContextLookupFunction

        protected ScriptedContextLookupFunction​(@Nonnull
                                                Class<T> inClass,
                                                @Nonnull
                                                net.shibboleth.utilities.java.support.scripting.EvaluableScript theScript,
                                                @Nullable
                                                String extraInfo)
        Constructor.
        Parameters:
        inClass - the class we accept as input.
        theScript - the script we will evaluate.
        extraInfo - debugging information.
      • ScriptedContextLookupFunction

        protected ScriptedContextLookupFunction​(@Nonnull
                                                Class<T> inClass,
                                                @Nonnull
                                                net.shibboleth.utilities.java.support.scripting.EvaluableScript theScript)
        Constructor.
        Parameters:
        inClass - the class we accept as input.
        theScript - the script we will evaluate.
      • ScriptedContextLookupFunction

        protected ScriptedContextLookupFunction​(@Nonnull
                                                Class<T> inClass,
                                                @Nonnull
                                                net.shibboleth.utilities.java.support.scripting.EvaluableScript theScript,
                                                @Nullable
                                                String extraInfo,
                                                @Nullable
                                                Class<?> outputType)
        Constructor.
        Parameters:
        inClass - the class we accept as input.
        theScript - the script we will evaluate.
        extraInfo - debugging information.
        outputType - the type to test against.