@Test public void testGetManifest() throws Exception { mockMvc.perform(get("/presentation/" + IIIFPresentationApiController.VERSION + "/abcdef/manifest")) .andExpect(status().isOk()); }
@CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody public Manifest getManifest(@PathVariable String identifier, HttpServletRequest request) throws NotFoundException, InvalidDataException { HttpLoggingUtilities.addRequestClientInfoToMDC(request); MDC.put("manifestId", identifier); try { Manifest manifest = presentationService.getManifest(identifier); LOGGER.info("Serving manifest for {}", identifier); return manifest; } catch (NotFoundException e) { LOGGER.info("Did not find manifest for {}", identifier); throw e; } catch (InvalidDataException e) { LOGGER.error("Bad data for {}", identifier); throw e; } finally { MDC.clear(); } }
IIIFPresentationApiController { @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody public Manifest getManifest(@PathVariable String identifier, HttpServletRequest request) throws NotFoundException, InvalidDataException { HttpLoggingUtilities.addRequestClientInfoToMDC(request); MDC.put("manifestId", identifier); try { Manifest manifest = presentationService.getManifest(identifier); LOGGER.info("Serving manifest for {}", identifier); return manifest; } catch (NotFoundException e) { LOGGER.info("Did not find manifest for {}", identifier); throw e; } catch (InvalidDataException e) { LOGGER.error("Bad data for {}", identifier); throw e; } finally { MDC.clear(); } } }
IIIFPresentationApiController { @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody public Manifest getManifest(@PathVariable String identifier, HttpServletRequest request) throws NotFoundException, InvalidDataException { HttpLoggingUtilities.addRequestClientInfoToMDC(request); MDC.put("manifestId", identifier); try { Manifest manifest = presentationService.getManifest(identifier); LOGGER.info("Serving manifest for {}", identifier); return manifest; } catch (NotFoundException e) { LOGGER.info("Did not find manifest for {}", identifier); throw e; } catch (InvalidDataException e) { LOGGER.error("Bad data for {}", identifier); throw e; } finally { MDC.clear(); } }  }
IIIFPresentationApiController { @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody public Manifest getManifest(@PathVariable String identifier, HttpServletRequest request) throws NotFoundException, InvalidDataException { HttpLoggingUtilities.addRequestClientInfoToMDC(request); MDC.put("manifestId", identifier); try { Manifest manifest = presentationService.getManifest(identifier); LOGGER.info("Serving manifest for {}", identifier); return manifest; } catch (NotFoundException e) { LOGGER.info("Did not find manifest for {}", identifier); throw e; } catch (InvalidDataException e) { LOGGER.error("Bad data for {}", identifier); throw e; } finally { MDC.clear(); } }  @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody Manifest getManifest(@PathVariable String identifier, HttpServletRequest request); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.HEAD) @ResponseBody void checkManifest(@PathVariable String identifier, HttpServletResponse response); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/canvas/{canvasId}"}, method = RequestMethod.GET) @ResponseBody Canvas getCanvas(@PathVariable String manifestId, @PathVariable String canvasId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/range/{rangeId}"}, method = RequestMethod.GET) @ResponseBody Range getRange(@PathVariable String manifestId, @PathVariable String rangeId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/sequence/{sequenceId}"}, method = RequestMethod.GET) @ResponseBody Sequence getSequence(@PathVariable String manifestId, @PathVariable String sequenceId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"collection/{name}"}, method = {RequestMethod.GET, RequestMethod.HEAD}, produces = "application/json") @ResponseBody Collection getCollection(@PathVariable String name, HttpServletRequest request); }
IIIFPresentationApiController { @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody public Manifest getManifest(@PathVariable String identifier, HttpServletRequest request) throws NotFoundException, InvalidDataException { HttpLoggingUtilities.addRequestClientInfoToMDC(request); MDC.put("manifestId", identifier); try { Manifest manifest = presentationService.getManifest(identifier); LOGGER.info("Serving manifest for {}", identifier); return manifest; } catch (NotFoundException e) { LOGGER.info("Did not find manifest for {}", identifier); throw e; } catch (InvalidDataException e) { LOGGER.error("Bad data for {}", identifier); throw e; } finally { MDC.clear(); } }  @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.GET, produces = "application/json") @ResponseBody Manifest getManifest(@PathVariable String identifier, HttpServletRequest request); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{identifier}/manifest", "{identifier}"}, method = RequestMethod.HEAD) @ResponseBody void checkManifest(@PathVariable String identifier, HttpServletResponse response); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/canvas/{canvasId}"}, method = RequestMethod.GET) @ResponseBody Canvas getCanvas(@PathVariable String manifestId, @PathVariable String canvasId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/range/{rangeId}"}, method = RequestMethod.GET) @ResponseBody Range getRange(@PathVariable String manifestId, @PathVariable String rangeId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"{manifestId}/sequence/{sequenceId}"}, method = RequestMethod.GET) @ResponseBody Sequence getSequence(@PathVariable String manifestId, @PathVariable String sequenceId, HttpServletRequest req); @CrossOrigin(allowedHeaders = {"*"}, origins = {"*"}) @RequestMapping(value = {"collection/{name}"}, method = {RequestMethod.GET, RequestMethod.HEAD}, produces = "application/json") @ResponseBody Collection getCollection(@PathVariable String name, HttpServletRequest request); static final String VERSION; }