@Test public void testList() { ctrl = new FormatController(geoServer); JSONArr all = ctrl.list(); assertTrue(all.size() > 0); Iterators.find(all.iterator(), nameIs("shapefile")); Iterators.find(all.iterator(), Predicates.and(nameIs("h2"), typeIs("database"))); }
@RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list() { JSONArr list = new JSONArr(); for (DataFormat<?> format : formats()) { encode(list.addObject(), format); } return list; }
FormatController extends ApiController { @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list() { JSONArr list = new JSONArr(); for (DataFormat<?> format : formats()) { encode(list.addObject(), format); } return list; } }
FormatController extends ApiController { @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list() { JSONArr list = new JSONArr(); for (DataFormat<?> format : formats()) { encode(list.addObject(), format); } return list; } @Autowired  FormatController(GeoServer geoServer); }
FormatController extends ApiController { @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list() { JSONArr list = new JSONArr(); for (DataFormat<?> format : formats()) { encode(list.addObject(), format); } return list; } @Autowired  FormatController(GeoServer geoServer); @RequestMapping(method = RequestMethod.GET) @ResponseBody JSONArr list(); @RequestMapping(value = "/{name}", method = RequestMethod.GET) @ResponseBody JSONObj get(@PathVariable String name); }
FormatController extends ApiController { @RequestMapping(method = RequestMethod.GET) public @ResponseBody JSONArr list() { JSONArr list = new JSONArr(); for (DataFormat<?> format : formats()) { encode(list.addObject(), format); } return list; } @Autowired  FormatController(GeoServer geoServer); @RequestMapping(method = RequestMethod.GET) @ResponseBody JSONArr list(); @RequestMapping(value = "/{name}", method = RequestMethod.GET) @ResponseBody JSONObj get(@PathVariable String name);  }