Interface ScriptContent


public interface ScriptContent
Web Script Content
Author:
davidc
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets an input stream to the contents of the script
    Gets the path to the content
    Gets path description
    Gets a reader to the contents of the script
    boolean
    Returns true if the script content is considered cachedable - i.e.
    boolean
    Returns true if the script location is considered secure - i.e.
  • Method Details

    • getInputStream

      InputStream getInputStream()
      Gets an input stream to the contents of the script
      Returns:
      the input stream
    • getReader

      Reader getReader()
      Gets a reader to the contents of the script
      Returns:
      the reader
    • getPath

      String getPath()
      Gets the path to the content
      Returns:
      path
    • getPathDescription

      String getPathDescription()
      Gets path description
      Returns:
      human readable version of path
    • isCachable

      boolean isCachable()
      Returns true if the script content is considered cachedable - i.e. classpath located or similar. Else the content will be compiled/interpreted on every execution i.e. repo content.
      Returns:
      true if the script content is considered cachedable, false otherwise
    • isSecure

      boolean isSecure()
      Returns true if the script location is considered secure - i.e. on the app-server classpath. Secure scripts may access java.* libraries and instantiate pure Java objects directly. Unsecure scripts only have access to pre-configure host objects and cannot access java.* libs.
      Returns:
      true if the script location is considered secure