Class ConquestTokenRequestTransformAction

  • All Implemented Interfaces:
    com.networknt.rule.IAction

    public class ConquestTokenRequestTransformAction
    extends Object
    implements com.networknt.rule.IAction
    It is called from the request transform interceptor from the light-gateway to get the conquest planning API access token to put into the Authorization header in order to access the conquest planning APIs. For the original consumer, it might have another token in the Authorization header for the gateway to verify in order to invoke the external service handler. Once the verification is done, the Authorization header will be replaced with the conquest token from the cache or retrieved from the conquest if it is expired or about to expire.
    Author:
    Steve Hu
    • Constructor Detail

      • ConquestTokenRequestTransformAction

        public ConquestTokenRequestTransformAction()
    • Method Detail

      • performAction

        public void performAction​(Map<String,​Object> objMap,
                                  Map<String,​Object> resultMap,
                                  Collection<com.networknt.rule.RuleActionValue> actionValues)
        Specified by:
        performAction in interface com.networknt.rule.IAction