Package org.hoteia.qalingo.core.pojo.geoloc

Examples of org.hoteia.qalingo.core.pojo.geoloc.GeolocContextResponse


   
    @GET
    @Path("geoloc")
    @Produces(MediaType.APPLICATION_JSON)
    public GeolocContextResponse getGeolocMarketArea(@Context HttpServletRequest request) {
        GeolocContextResponse geolocContextResponse = new GeolocContextResponse();
       
        try {
            GeolocDataPojo geolocDataPojo = marketPojoService.getGeolocDataByRemoteAddress(request.getRemoteAddr());
            MarketAreaPojo marketAreaPojo = marketPojoService.getMarketAreaByGeolocData(geolocDataPojo);
            geolocContextResponse.setMarketArea(marketAreaPojo);
           
        } catch (Exception e) {
            logger.error("Some error during the Geoloc Context.", e);
           
            // TODO SET ERROR IN THE RESPONSE
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.pojo.geoloc.GeolocContextResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.