public class LoadText extends AbstractFunction
| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
converter, evaluator, executor, logger, parser, resourceLoader| Constructor and Description |
|---|
LoadText(Executor executor,
HistoneResourceLoader loader,
Evaluator evaluator,
Parser parser,
Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected EvalNode |
convertToJson(EvalNode res) |
CompletableFuture<EvalNode> |
execute(Context context,
List<EvalNode> args)
Method returns
CompletableFuture with result of execution. |
protected Object |
fromJSON(String json) |
String |
getName()
Return function name
|
protected Map<String,Object> |
getParamsMap(Context context,
EvalNode requestMap) |
protected CompletableFuture<EvalNode> |
loadResource(Context context,
String path,
Map<String,Object> params) |
checkMaxArgsLength, checkMinArgsLength, checkTypes, checkTypes, clearGlobal, createCtx, getLongValue, getValue, getValue, isAsync, isClearpublic LoadText(Executor executor, HistoneResourceLoader loader, Evaluator evaluator, Parser parser, Converter converter)
public String getName()
Functionpublic CompletableFuture<EvalNode> execute(Context context, List<EvalNode> args) throws FunctionExecutionException
FunctionCompletableFuture with result of execution.args - arguments from Histone templateFunctionExecutionException - if your function stops with error and you need to put details into log,
then you should use this exceptionprotected CompletableFuture<EvalNode> loadResource(Context context, String path, Map<String,Object> params)
Copyright © 2017. All rights reserved.