Class SimpleScriptContent

java.lang.Object
de.hybris.platform.scripting.engine.content.impl.SimpleScriptContent
All Implemented Interfaces:
ScriptContent

public class SimpleScriptContent extends Object implements ScriptContent
ScriptContent backed by simple String representation of the Script body.
  • Constructor Details

    • SimpleScriptContent

      public SimpleScriptContent(String engineName, String content)
  • Method Details

    • getEngineName

      public String getEngineName()
      Description copied from interface: ScriptContent
      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.
      Specified by:
      getEngineName in interface ScriptContent
    • getContent

      public String getContent()
      Description copied from interface: ScriptContent
      Returns content of the script (executable body).
      Specified by:
      getContent in interface ScriptContent
    • getCustomContext

      public Map<String,Object> getCustomContext()
      Description copied from interface: ScriptContent
      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.
      Specified by:
      getCustomContext in interface ScriptContent