Interface GeoIpConfig
- All Superinterfaces:
- Config
Geo IP Configuration.
 
Values may not be changed after the server has started.
- Since:
- 4.4
- 
Method SummaryModifier and TypeMethodDescriptionGets the file name.booleanIs Geo Ip enabled?voidsetEnabled(boolean enabled) Sets enabled flag.voidsetFileName(String fileName) Sets the name of the Maxmind GeoCityIP city file.
- 
Method Details- 
setEnabledSets 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
 
- 
isEnabledboolean isEnabled()Is Geo Ip enabled?- Returns:
- true if enabled.
 
- 
setFileNameSets 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
 
- 
getFileNameString getFileName()Gets the file name.- Returns:
- file name
 
 
-