Class GeoLite2Geolocator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getCountry​(java.net.InetAddress inetAddress)  
      void prepare()
      Do everything that is needed for the geolocator to function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeoLite2Geolocator

        @Inject
        public GeoLite2Geolocator​(PlanFiles files,
                                  PlanConfig config)
    • Method Detail

      • prepare

        public void prepare()
                     throws java.io.IOException
        Description copied from interface: Geolocator
        Do everything that is needed for the geolocator to function.
        Specified by:
        prepare in interface Geolocator
        Throws:
        java.io.IOException - If the preparation fails
        java.net.UnknownHostException - If preparation requires internet, but internet is not available.
      • getCountry

        public java.util.Optional<java.lang.String> getCountry​(java.net.InetAddress inetAddress)
        Specified by:
        getCountry in interface Geolocator