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 void
addCallerConfiguration(CallerConfiguration configuration)
To add a IPBaseCallerConfigurationCallerConfiguration
getCallerConfiguration(String ID)
To get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.String
getConfigurationKeyOfCaller(String callerID)
To get key for access configurationint
getType()
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:
getCallerConfiguration
in 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:
addCallerConfiguration
in interfaceThrottleConfiguration
- Parameters:
configuration
- The configuration for a caller
-
getConfigurationKeyOfCaller
public String getConfigurationKeyOfCaller(String callerID)
To get key for access configuration- Specified by:
getConfigurationKeyOfCaller
in 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:ThrottleConfiguration
To get the type of the throttle- Specified by:
getType
in interfaceThrottleConfiguration
- Returns:
- the type of the throttle
-
-