Class ScriptableResourceUriProvider

java.lang.Object
org.forgerock.openig.script.AbstractScriptableHeapObject<String>
org.forgerock.openig.openam.ScriptableResourceUriProvider
All Implemented Interfaces:
Closeable, AutoCloseable, ResourceUriProvider

public final class ScriptableResourceUriProvider extends AbstractScriptableHeapObject<String> implements ResourceUriProvider
A scriptable resource URI provider. This resource URI provider acts as a simple wrapper around the scripting engine. Scripts are provided with the bindings provided by AbstractScriptableHeapObject.
Since:
7.0
  • Method Details

    • resourceUri

      public String resourceUri(Context context, Request request)
      Description copied from interface: ResourceUriProvider
      Returns the resource URI as a String to be used when making policy requests.
      Specified by:
      resourceUri in interface ResourceUriProvider
      Parameters:
      context - The request context.
      request - The request.
      Returns:
      a String representing the resource URI.