Class AbstractTransformerMiddleware
java.lang.Object
com.networknt.aws.lambda.handler.middleware.transformer.AbstractTransformerMiddleware
- All Implemented Interfaces:
LambdaHandler,MiddlewareHandler
- Direct Known Subclasses:
RequestTransformerMiddleware,ResponseTransformerMiddleware
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.networknt.rule.RuleEngineFields inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
DISABLED_LAMBDA_HANDLER_RETURN, SUCCESS_LAMBDA_HANDLER_RETURN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertMapValueToString(Map<String, Object> originalMap) voidbooleanIndicate if this middleware handler is asynchronous or not.booleanIndicate if this middleware handler is audited or not.booleanIndicate if this middleware handler will continue on failure or not.static voidloadActionClass(String actionClass) static voidvoidreload()Reload config values in case the config values changed by config server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.aws.lambda.handler.LambdaHandler
disabledMiddlewareStatus, execute, isEnabled, isResponseMiddleware, register, successMiddlewareStatus
-
Field Details
-
rules
-
ruleEngine
public static com.networknt.rule.RuleEngine ruleEngine
-
-
Constructor Details
-
AbstractTransformerMiddleware
public AbstractTransformerMiddleware()
-
-
Method Details
-
loadPluginClass
public static void loadPluginClass() -
loadActionClass
-
convertMapValueToString
-
reload
public void reload()Description copied from interface:LambdaHandlerReload config values in case the config values changed by config server.- Specified by:
reloadin interfaceLambdaHandler
-
isAsynchronous
public boolean isAsynchronous()Description copied from interface:LambdaHandlerIndicate if this middleware handler is asynchronous or not.- Specified by:
isAsynchronousin interfaceLambdaHandler- Returns:
- boolean true if asynchronous
-
isContinueOnFailure
public boolean isContinueOnFailure()Description copied from interface:MiddlewareHandlerIndicate if this middleware handler will continue on failure or not.- Specified by:
isContinueOnFailurein interfaceMiddlewareHandler- Returns:
- boolean true if continue on failure
-
isAudited
public boolean isAudited()Description copied from interface:MiddlewareHandlerIndicate if this middleware handler is audited or not.- Specified by:
isAuditedin interfaceMiddlewareHandler- Returns:
- boolean true if audited
-
getCachedConfigurations
public void getCachedConfigurations()- Specified by:
getCachedConfigurationsin interfaceMiddlewareHandler
-