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

    ALL_METHODS, configMap, description, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order, params
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    Methods inherited from class io.inversion.Action

    configureOp, doDelete, doGet, doPatch, doPost, doPut, getFullIncludePaths, getIncludePaths, isDecoration, joinPaths, joinPaths0, run0, withDecoration

    Methods inherited from class io.inversion.Rule

    afterWiringComplete, checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludeMethods, getAllIncludePaths, getDefaultIncludeMatchers, getDescription, getExcludeMatchers, getIncludeMatchers, getName, getOrder, getParams, match, match, matches, matches, toString, withDescription, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withName, withOrder, withParam, withParams

    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.json.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.json.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)