Interface GeoIpConfig
- All Superinterfaces:
Config
Geo IP Configuration.
Values may not be changed after the server has started.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionGets the file name.boolean
Is Geo Ip enabled?void
setEnabled
(boolean enabled) Sets enabled flag.void
setFileName
(String fileName) Sets the name of the Maxmind GeoCityIP city file.
-
Method Details
-
setEnabled
Sets enabled flag. Set to false to disable Geo IP lookup. By default GeoIp is enabled. This needs to enabled if you are going to use connection/subscription validation policies.- Parameters:
enabled
- false to disable GeoIp- Throws:
ConfigException
- if unable to set the property
-
isEnabled
boolean isEnabled()Is Geo Ip enabled?- Returns:
- true if enabled.
-
setFileName
Sets the name of the Maxmind GeoCityIP city file.If not explicitly set, it is assumed that it is in the issued location ("data/GeoLite2-City.mmdb").
- Parameters:
fileName
- the file name- Throws:
ConfigException
- if unable to set the property
-
getFileName
String getFileName()Gets the file name.- Returns:
- file name
-