Interface IGeoLocationManager

    • Field Detail

      • LOGGER

        static final ILogger LOGGER
        This class' logger.
        Since:
        10.2.0
    • Method Detail

      • getGeoPointByRequest

        default ExtendedGeoPoint getGeoPointByRequest​(HttpServletRequest request)
                                               throws UnknownHostException
        Returns the extended geo point based on the given request or null if Geolocation service is disabled or the address couldn't be found. Gets the location of remote address.
        Parameters:
        request - the request.
        Returns:
        the extended geo point based on the given request or null if Geolocation service is disabled or the address couldn't be found.
        Throws:
        UnknownHostException
        Since:
        10.2.0
      • getGeoPointByIpOrHostName

        default ExtendedGeoPoint getGeoPointByIpOrHostName​(String ipOrHost)
                                                    throws UnknownHostException
        Returns the extended geo point based on the given ip address or host name or null if Geolocation service is disabled or the address couldn't be found.
        Parameters:
        ipOrHost - the ip address or host name.
        Returns:
        the extended geo point based on the given ip address or host name or null if Geolocation service is disabled or the address couldn't be found.
        Throws:
        UnknownHostException
        Since:
        10.2.0
      • getGeoPointByAddress

        default ExtendedGeoPoint getGeoPointByAddress​(InetAddress address)
        Returns the extended geo point based on the given ip address or null if Geolocation service is disabled or the address couldn't be found.
        Parameters:
        address - the ip address.
        Returns:
        the extended geo point based on the given ip address or null if Geolocation service is disabled or the address couldn't be found.
        Since:
        10.2.0