Package lumis.portal.geolocation
Interface IGeoLocationManager
-
- All Known Subinterfaces:
IGeoLocationManagerSPI
- All Known Implementing Classes:
GeoLocationManager
@StableMinor(version="14.0", sinceVersion="10.2") public interface IGeoLocationManager
Provides geo location related actions.- Since:
- 10.2.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
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
-
-