Class RemoteAddressKeyResolver
- java.lang.Object
-
- com.networknt.aws.lambda.handler.middleware.limit.key.RemoteAddressKeyResolver
-
- All Implemented Interfaces:
KeyResolver
public class RemoteAddressKeyResolver extends Object implements 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 Constructor Description RemoteAddressKeyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringresolve(LightLambdaExchange exchange)Resolve a unique key from the exchange
-
-
-
Method Detail
-
resolve
public String resolve(LightLambdaExchange exchange)
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
-
-