Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<bean id="MyPRCFunction" parent="shibboleth.ContextFunctions.Scripted" factory-method="inlineScript"
		c:outputType="java.lang.String"
		p:hideExceptions="true">
    <constructor-arg name="scriptSource">
        <value>
        <![CDATA[
			input.getLoggingId();
         ]]>
        </value>
    </constructor-arg>
</bean>

resourceScript, resourceMessageContextScript

These factory methods are used to construct functions over a ProfileRequestContext or MessageContext respectively. Various variants exist to control the scripting engine and output type, but all of them rely on a String parameter to supply the location of a resource (file) containing the script.

...