public class IPBaseCallerConfiguration extends CallerConfiguration
Constructor and Description |
---|
IPBaseCallerConfiguration() |
IPBaseCallerConfiguration(long unitTime,
int maximumRequest,
long prohibitTimePeriod,
String ipRange)
The Constructor with all configuration data
|
Modifier and Type | Method and Description |
---|---|
String |
getFirstPartOfIPRange()
To get First Part of IP Range
|
String |
getID()
To get IP Range - Group IP
|
String |
getSecondPartOfIPRange()
To get Second Part of IP Range
|
int |
getType()
To get the type of the throttle
|
void |
setFirstPartOfIPRange(String firstPartOfIPRange)
To set First Part of IP Range
|
void |
setID(String iprange)
To set IP Range
|
void |
setSecondPartOfIPRange(String secondPartOfIPRange)
To set Second Part Of IP Range
|
getAccessState, getMaximumRequestPerUnitTime, getProhibitTimePeriod, getUnitTime, setAccessState, setMaximumRequestPerUnitTime, setProhibitTimePeriod, setUnitTime
public IPBaseCallerConfiguration()
public IPBaseCallerConfiguration(long unitTime, int maximumRequest, long prohibitTimePeriod, String ipRange)
unitTime
- - long value which represents Unit Time WindowmaximumRequest
- - int value which represents Maximum RequestprohibitTimePeriod
- - long value which represents Prohibit Time after Max request cameipRange
- - String value which represents IP Rangepublic String getID()
getID
in class CallerConfiguration
public String getFirstPartOfIPRange()
public String getSecondPartOfIPRange()
public void setID(String iprange)
setID
in class CallerConfiguration
iprange
- The string representation of ip (single or group)public int getType()
CallerConfiguration
getType
in class CallerConfiguration
public void setFirstPartOfIPRange(String firstPartOfIPRange)
firstPartOfIPRange
- - String valuepublic void setSecondPartOfIPRange(String secondPartOfIPRange)
secondPartOfIPRange
- - String valueCopyright © 2005–2018 Apache Software Foundation. All rights reserved.