Class MaxmindGeoIp2Source
- java.lang.Object
-
- technology.dice.dicewhere.building.mmdb.MmdbLocationSource
-
- technology.dice.dicewhere.building.mmdb.maxmind.MaxmindGeoIp2Source
-
- All Implemented Interfaces:
LocationSource
public class MaxmindGeoIp2Source extends MmdbLocationSource
-
-
Field Summary
-
Fields inherited from class technology.dice.dicewhere.building.mmdb.MmdbLocationSource
mmdbDatabaseType
-
-
Constructor Summary
Constructors Constructor Description MaxmindGeoIp2Source(Path path)Builds a maxmind GeoIp2 database using an mmdb source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends CityResult>cityResult()Class<? extends CountryResult>countryResult()Set<String>supportedCityDatabaseTypes()Set<String>supportedCountryDatabaseTypes()-
Methods inherited from class technology.dice.dicewhere.building.mmdb.MmdbLocationSource
resolve
-
-
-
-
Constructor Detail
-
MaxmindGeoIp2Source
public MaxmindGeoIp2Source(Path path)
Builds a maxmind GeoIp2 database using an mmdb source- Parameters:
path- to the dataset file. GeoLite2-City, GeoIP2-City,GeoLite2-Country, GeoIP2-Country are supported
-
-
Method Detail
-
supportedCityDatabaseTypes
public Set<String> supportedCityDatabaseTypes()
- Specified by:
supportedCityDatabaseTypesin classMmdbLocationSource
-
supportedCountryDatabaseTypes
public Set<String> supportedCountryDatabaseTypes()
- Specified by:
supportedCountryDatabaseTypesin classMmdbLocationSource
-
cityResult
public Class<? extends CityResult> cityResult()
- Specified by:
cityResultin classMmdbLocationSource
-
countryResult
public Class<? extends CountryResult> countryResult()
- Specified by:
countryResultin classMmdbLocationSource
-
-