Class RemoteScriptsRepository

java.lang.Object
de.hybris.platform.scripting.engine.repository.impl.AbstractScriptsRepository
de.hybris.platform.scripting.engine.repository.impl.RemoteScriptsRepository
All Implemented Interfaces:
ScriptsRepository

public class RemoteScriptsRepository extends AbstractScriptsRepository
This repository does lookup for scripts in the repote location.

The format of URI for script:

 http://server.com/path/to/script.groovy
 https://server.com/path/to/script.groovy
 ftp://server.com/path/to/script.js
 

Any scripts which are intended to be used by this repository must have proper file extension according to the Script Type.

  • Constructor Details

    • RemoteScriptsRepository

      public RemoteScriptsRepository()
  • Method Details

    • lookupScript

      public ScriptContent lookupScript(String protocol, String path)
      Description copied from interface: ScriptsRepository
      Lookup script in the repository by protocol and path.
      Parameters:
      protocol - native protocol for the given repository.
      path - path of the Script in the given repository.
      Returns:
      ScriptContent object