Package lumis.portal.geolocation
Interface IGeoLocationManager
-
- All Known Subinterfaces:
IGeoLocationManagerSPI
- All Known Implementing Classes:
GeoLocationManager
@StableMinor(version="16.1", sinceVersion="10.2") public interface IGeoLocationManager
Provides geo location related actions.- Since:
- 10.2.0
- Version:
- $Revision: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExtendedGeoPoint
getGeoPointByAddress(java.net.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(java.lang.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 java.net.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:
java.net.UnknownHostException
- Since:
- 10.2.0
-
getGeoPointByIpOrHostName
default ExtendedGeoPoint getGeoPointByIpOrHostName(java.lang.String ipOrHost) throws java.net.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:
java.net.UnknownHostException
- Since:
- 10.2.0
-
getGeoPointByAddress
ExtendedGeoPoint getGeoPointByAddress(java.net.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
-
-