Class ContributionsController


  • @RestController
    @RequestMapping("/contributions")
    public class ContributionsController
    extends Object
    REST controller containing the methods, which are mapped to "/contributions" and used to return each contribution (creation, modification, deletion) of the OSM data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contributions​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
      void contributionsBbox​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
      void contributionsBboxLatest​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the latest contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
      void contributionsCentroid​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
      void contributionsCentroidLatest​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the latest contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
      void contributionsLatest​(javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse)
      Gives the latest contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
    • Constructor Detail

      • ContributionsController

        public ContributionsController()
    • Method Detail

      • contributions

        @RequestMapping(value="/geometry",
                        method={GET,POST},
                        produces="application/json")
        public void contributions​(javax.servlet.http.HttpServletRequest servletRequest,
                                  javax.servlet.http.HttpServletResponse servletResponse)
                           throws Exception
        Gives the contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by #extract() extract
      • contributionsBbox

        @RequestMapping(value="/bbox",
                        method={GET,POST},
                        produces="application/json")
        public void contributionsBbox​(javax.servlet.http.HttpServletRequest servletRequest,
                                      javax.servlet.http.HttpServletResponse servletResponse)
                               throws Exception
        Gives the contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by #extract() extract
      • contributionsCentroid

        @RequestMapping(value="/centroid",
                        method={GET,POST},
                        produces="application/json")
        public void contributionsCentroid​(javax.servlet.http.HttpServletRequest servletRequest,
                                          javax.servlet.http.HttpServletResponse servletResponse)
                                   throws Exception
        Gives the contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by extract
      • contributionsLatest

        @RequestMapping(value="/latest/geometry",
                        method={GET,POST},
                        produces="application/json")
        public void contributionsLatest​(javax.servlet.http.HttpServletRequest servletRequest,
                                        javax.servlet.http.HttpServletResponse servletResponse)
                                 throws Exception
        Gives the latest contributions as GeoJSON features, which have the geometry of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by #extract() extract
      • contributionsBboxLatest

        @RequestMapping(value="/latest/bbox",
                        method={GET,POST},
                        produces="application/json")
        public void contributionsBboxLatest​(javax.servlet.http.HttpServletRequest servletRequest,
                                            javax.servlet.http.HttpServletResponse servletResponse)
                                     throws Exception
        Gives the latest contributions as GeoJSON features, which have the bounding box of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by #extract() extract
      • contributionsCentroidLatest

        @RequestMapping(value="/latest/centroid",
                        method={GET,POST},
                        produces="application/json")
        public void contributionsCentroidLatest​(javax.servlet.http.HttpServletRequest servletRequest,
                                                javax.servlet.http.HttpServletResponse servletResponse)
                                         throws Exception
        Gives the latest contributions as GeoJSON features, which have the centroid of the respective objects in the geometry field.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Throws:
        Exception - thrown by #extract() extract