Class RadarServerController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Controller
    @RequestMapping("/radarServer")
    public class RadarServerController
    extends Object
    implements org.springframework.beans.factory.InitializingBean
    Serve up radar data in a way that makes it easy to query. Relevant query data are pulled based on filename and directory structure to avoid needing to crack open large numbers of files.
    Since:
    01/15/2014
    • Constructor Detail

      • RadarServerController

        public RadarServerController()
    • Method Detail

      • init

        @EventListener
        public void init​(org.springframework.context.event.ContextRefreshedEvent event)
      • topLevelCatalog

        @RequestMapping("catalog.xml")
        @ResponseBody
        public org.springframework.http.HttpEntity<byte[]> topLevelCatalog()
                                                                    throws IOException
        Throws:
        IOException
      • datasetCatalog

        @RequestMapping("**/dataset.xml")
        @ResponseBody
        public org.springframework.http.HttpEntity<byte[]> datasetCatalog​(javax.servlet.http.HttpServletRequest request)
                                                                   throws IOException
        Throws:
        IOException
      • stations

        @RequestMapping(value="**/{dataset}",
                        params="station=all")
        @ResponseBody
        public StationList stations​(@PathVariable
                                    String dataset,
                                    javax.servlet.http.HttpServletRequest request)
      • stationsFile

        @RequestMapping("**/stations.xml")
        @ResponseBody
        public StationList stationsFile​(javax.servlet.http.HttpServletRequest request)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception