Class GeolocationResource


  • @Path("/lumis/geolocation")
    public class GeolocationResource
    extends java.lang.Object
    REST API for gelocalization
    Since:
    16.0.0
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response userCurrentPosition​(javax.servlet.http.HttpServletRequest request)
      Returns the user current geolocation
      • Methods inherited from class java.lang.Object

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

      • GeolocationResource

        public GeolocationResource()
    • Method Detail

      • userCurrentPosition

        @Path("/currentPosition")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response userCurrentPosition​(@Context
                                                             javax.servlet.http.HttpServletRequest request)
        Returns the user current geolocation
        Returns:
        Throws:
        lumis.portal.geolocation.GeoLocationServiceDisabledException
        com.maxmind.geoip2.exception.AddressNotFoundException
        java.net.UnknownHostException
        Since:
        16.0.0