Class IPBaseThrottleConfiguration
- java.lang.Object
-
- org.apache.synapse.commons.throttle.core.impl.ipbase.IPBaseThrottleConfiguration
-
- All Implemented Interfaces:
ThrottleConfiguration
public class IPBaseThrottleConfiguration extends Object implements ThrottleConfiguration
-
-
Constructor Summary
Constructors Constructor Description IPBaseThrottleConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCallerConfiguration(CallerConfiguration configuration)To add a IPBaseCallerConfigurationCallerConfigurationgetCallerConfiguration(String ID)To get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.StringgetConfigurationKeyOfCaller(String callerID)To get key for access configurationintgetType()To get the type of the throttle
-
-
-
Method Detail
-
getCallerConfiguration
public CallerConfiguration getCallerConfiguration(String ID)
To get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.- Specified by:
getCallerConfigurationin interfaceThrottleConfiguration- Parameters:
ID- - The Remote caller id (IP)- Returns:
- Returns the corresponding configuration for the caller with given ID
-
addCallerConfiguration
public void addCallerConfiguration(CallerConfiguration configuration)
To add a IPBaseCallerConfiguration- Specified by:
addCallerConfigurationin interfaceThrottleConfiguration- Parameters:
configuration- The configuration for a caller
-
getConfigurationKeyOfCaller
public String getConfigurationKeyOfCaller(String callerID)
To get key for access configuration- Specified by:
getConfigurationKeyOfCallerin interfaceThrottleConfiguration- Parameters:
callerID- The remote caller id (ip)- Returns:
- Object-String representation of corrected epr-key for get configuration
-
getType
public int getType()
Description copied from interface:ThrottleConfigurationTo get the type of the throttle- Specified by:
getTypein interfaceThrottleConfiguration- Returns:
- the type of the throttle
-
-