Package lumis.portal.geolocation
Interface IGeoLocationManager
-
- All Known Subinterfaces:
IGeoLocationManagerSPI
- All Known Implementing Classes:
GeoLocationManager
@StableMinor(version="14.2", sinceVersion="10.2") public interface IGeoLocationManager
Provides geo location related actions.- Since:
- 10.2.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ExtendedGeoPoint
getGeoPointByAddress(InetAddress address)
Returns the extended geo point based on the given ip address ornull
if Geolocation service is disabled or the address couldn't be found.default ExtendedGeoPoint
getGeoPointByIpOrHostName(String ipOrHost)
Returns the extended geo point based on the given ip address or host name ornull
if Geolocation service is disabled or the address couldn't be found.default ExtendedGeoPoint
getGeoPointByRequest(HttpServletRequest request)
Returns the extended geo point based on the given request ornull
if Geolocation service is disabled or the address couldn't be found.
-
-
-
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 ornull
if Geolocation service is disabled or the address couldn't be found. Gets the location ofremote 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 ornull
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 ornull
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
-
-