Class RemoteAddressKeyResolver
java.lang.Object
com.networknt.aws.lambda.handler.middleware.limit.key.RemoteAddressKeyResolver
- All Implemented Interfaces:
KeyResolver
When address is used as the key, we can get the IP address from the header of the request. If there
is no proxy before our service and gateway, we can use the remote address for the purpose.
- Author:
- Steve Hu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(LightLambdaExchange exchange) Resolve a unique key from the exchange
-
Constructor Details
-
RemoteAddressKeyResolver
public RemoteAddressKeyResolver()
-
-
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
-