Interface ScriptContent

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      Returns content of the script (executable body).
      java.util.Map<java.lang.String,​java.lang.Object> getCustomContext()
      Method which may return context parameters map with some additions related to current implementation of the ScriptContent which will be passed later on to the script.
      java.lang.String getEngineName()
      Gets engine name.
    • Method Detail

      • getEngineName

        java.lang.String getEngineName()
        Gets engine name. The name may be full engine name JSR-223 compliant, proper file extension of the script or mime type of the script.
      • getContent

        java.lang.String getContent()
        Returns content of the script (executable body).
        Throws:
        ScriptNotFoundException - if content cannot be obtained.
      • getCustomContext

        java.util.Map<java.lang.String,​java.lang.Object> getCustomContext()
        Method which may return context parameters map with some additions related to current implementation of the ScriptContent which will be passed later on to the script. In case of none of the parameters are present empty map must be returned.