Package io.inversion.script
Class ScriptAction
java.lang.Object
io.inversion.Rule<A>
io.inversion.Action<ScriptAction>
io.inversion.script.ScriptAction
- All Implemented Interfaces:
Comparable<ScriptAction>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.inversion.Rule
io.inversion.Rule.RuleMatcher -
Field Summary
FieldsFields inherited from class io.inversion.Rule
configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, name, order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.inversion.utils.JSNodefindScript(String path) LinkedHashMap<String,io.inversion.utils.JSNode> findScripts(io.inversion.Request req) longvoidrun(io.inversion.Request req, io.inversion.Response res) voidsetCacheExpireSeconds(long cacheExpireSeconds) voidsetScriptsCollection(String scriptsCollection) withCacheExpireSeconds(long cacheExpireSeconds) withScriptsDir(String scriptsDir) Methods inherited from class io.inversion.Action
doDelete, doGet, doPatch, doPost, doPut, run0Methods 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
-
Field Details
-
log
protected final org.slf4j.Logger log
-
-
Constructor Details
-
ScriptAction
public ScriptAction()
-
-
Method Details
-
findScript
-
run
public void run(io.inversion.Request req, io.inversion.Response res) throws io.inversion.ApiException - Overrides:
runin classio.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
-
setScriptsCollection
-
getScriptsDir
-
withScriptsDir
-
getCacheExpireSeconds
public long getCacheExpireSeconds() -
setCacheExpireSeconds
public void setCacheExpireSeconds(long cacheExpireSeconds) -
withCacheExpireSeconds
-