Class UsersController


  • @RestController
    @RequestMapping("/users")
    public class UsersController
    extends Object
    Controller containing the GET and POST servletRequests, which enter through "/users".
    • Constructor Summary

      Constructors 
      Constructor Description
      UsersController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Response count​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM users.
      Response countDensity​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM users (number of users divided by the total area in square-kilometers).
      Response countDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM users (number of users divided by the total area in square-kilometers) grouped by boundary geometries.
      Response countDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM users grouped by the tag.
      Response countDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the density of OSM users grouped by the OSM type.
      Response countGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM users grouped by boundary geometries.
      Response countGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM users grouped by the key.
      Response countGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM users grouped by the tag.
      Response countGroupByType​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the count of OSM users grouped by the OSM type.
    • Constructor Detail

      • UsersController

        public UsersController()
    • Method Detail

      • count

        @RequestMapping(value="/count",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response count​(javax.servlet.http.HttpServletRequest servletRequest,
                              javax.servlet.http.HttpServletResponse servletResponse)
                       throws Exception
        Gives the count of OSM users.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        DefaultAggregationResponse
        Throws:
        Exception - thrown by #count(boolean, boolean) count
      • countGroupByType

        @RequestMapping(value="/count/groupBy/type",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countGroupByType​(javax.servlet.http.HttpServletRequest servletRequest,
                                         javax.servlet.http.HttpServletResponse servletResponse)
                                  throws Exception
        Gives the count of OSM users grouped by the OSM type.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByType(HttpServletRequest, HttpServletResponse, boolean) countGroupByType
      • countGroupByTag

        @RequestMapping(value="count/groupBy/tag",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest,
                                        javax.servlet.http.HttpServletResponse servletResponse)
                                 throws Exception
        Gives the count of OSM users grouped by the tag.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByTag(HttpServletRequest, HttpServletResponse, boolean) countGroupByTag
      • countGroupByKey

        @RequestMapping(value="count/groupBy/key",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countGroupByKey​(javax.servlet.http.HttpServletRequest servletRequest,
                                        javax.servlet.http.HttpServletResponse servletResponse)
                                 throws Exception
        Gives the count of OSM users grouped by the key.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByKey(HttpServletRequest, HttpServletResponse, boolean) countGroupByKey
      • countGroupByBoundary

        @RequestMapping(value="/count/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                             javax.servlet.http.HttpServletResponse servletResponse)
                                      throws Exception
        Gives the count of OSM users grouped by boundary geometries.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByBoundary(HttpServletRequest, HttpServletResponse, boolean) countGroupByBoundary
      • countDensity

        @RequestMapping(value="/count/density",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensity​(javax.servlet.http.HttpServletRequest servletRequest,
                                     javax.servlet.http.HttpServletResponse servletResponse)
                              throws Exception
        Gives the density of OSM users (number of users divided by the total area in square-kilometers).
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        DefaultAggregationResponse
        Throws:
        Exception - thrown by #count(boolean, boolean) count
      • countDensityGroupByType

        @RequestMapping(value="/count/density/groupBy/type",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensityGroupByType​(javax.servlet.http.HttpServletRequest servletRequest,
                                                javax.servlet.http.HttpServletResponse servletResponse)
                                         throws Exception
        Gives the density of OSM users grouped by the OSM type.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByType(HttpServletRequest, HttpServletResponse, boolean) countGroupByType
      • countDensityGroupByTag

        @RequestMapping(value="/count/density/groupBy/tag",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensityGroupByTag​(javax.servlet.http.HttpServletRequest servletRequest,
                                               javax.servlet.http.HttpServletResponse servletResponse)
                                        throws Exception
        Gives the density of OSM users grouped by the tag.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByTag(HttpServletRequest, HttpServletResponse, boolean) countGroupByTag
      • countDensityGroupByBoundary

        @RequestMapping(value="/count/density/groupBy/boundary",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response countDensityGroupByBoundary​(javax.servlet.http.HttpServletRequest servletRequest,
                                                    javax.servlet.http.HttpServletResponse servletResponse)
                                             throws Exception
        Gives the density of OSM users (number of users divided by the total area in square-kilometers) grouped by boundary geometries.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        Response
        Throws:
        Exception - thrown by #countGroupByBoundary(HttpServletRequest, HttpServletResponse, boolean) countGroupByBoundary