Class ScriptAction

java.lang.Object
io.inversion.Rule<A>
io.inversion.Action<ScriptAction>
io.inversion.script.ScriptAction
All Implemented Interfaces:
Comparable<ScriptAction>

public class ScriptAction extends io.inversion.Action<ScriptAction>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.inversion.Rule

    io.inversion.Rule.RuleMatcher
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     

    Fields inherited from class io.inversion.Rule

    configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.inversion.utils.JSNode
     
    LinkedHashMap<String,io.inversion.utils.JSNode>
    findScripts(io.inversion.Request req)
     
    long
     
     
     
    void
    run(io.inversion.Request req, io.inversion.Response res)
     
    void
    setCacheExpireSeconds(long cacheExpireSeconds)
     
    void
    setScriptsCollection(String scriptsCollection)
     
    withCacheExpireSeconds(long cacheExpireSeconds)
     
    withScriptsDir(String scriptsDir)
     

    Methods inherited from class io.inversion.Action

    doDelete, doGet, doPatch, doPost, doPut, run0

    Methods inherited from class io.inversion.Rule

    checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludePaths, getConfig, getConfig, getConfigKeys, getDefaultIncludeMatch, getExcludeMatchers, getIncludeMatchers, getName, getOrder, match, matches, matches, toString, withConfig, withExcludeOn, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withIncludeOn, withName, withOrder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • log

      protected final org.slf4j.Logger log
  • Constructor Details

    • ScriptAction

      public ScriptAction()
  • Method Details

    • findScript

      public static io.inversion.utils.JSNode findScript(String path)
    • run

      public void run(io.inversion.Request req, io.inversion.Response res) throws io.inversion.ApiException
      Overrides:
      run in class io.inversion.Action<ScriptAction>
      Throws:
      io.inversion.ApiException
    • findScripts

      public LinkedHashMap<String,io.inversion.utils.JSNode> findScripts(io.inversion.Request req) throws io.inversion.ApiException
      Throws:
      io.inversion.ApiException
    • getScriptsCollection

      public String getScriptsCollection()
    • setScriptsCollection

      public void setScriptsCollection(String scriptsCollection)
    • getScriptsDir

      public String getScriptsDir()
    • withScriptsDir

      public ScriptAction withScriptsDir(String scriptsDir)
    • getCacheExpireSeconds

      public long getCacheExpireSeconds()
    • setCacheExpireSeconds

      public void setCacheExpireSeconds(long cacheExpireSeconds)
    • withCacheExpireSeconds

      public ScriptAction withCacheExpireSeconds(long cacheExpireSeconds)