Class AkamaiAddressKeyResolver
java.lang.Object
com.networknt.aws.lambda.handler.middleware.limit.key.AkamaiAddressKeyResolver
- All Implemented Interfaces:
KeyResolver
When native-lambda is used for external clients and all external requests go through the
Akamai cloud proxy, the real client IP can be retrieved from the header as True-Client-IP
- Author:
- Steve Hu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(LightLambdaExchange exchange) Resolve a unique key from the exchange
-
Constructor Details
-
AkamaiAddressKeyResolver
public AkamaiAddressKeyResolver()
-
-
Method Details
-
resolve
Description copied from interface:KeyResolverResolve a unique key from the exchange- Specified by:
resolvein interfaceKeyResolver- Parameters:
exchange- lambda exchange- Returns:
- A string for the key
-