Class ExtendedViewController


  • @Controller
    public class ExtendedViewController
    extends java.lang.Object
    Controller for serving viewer page. Provides direct access to viewer for external call. Can be overwritten with custom behaviour.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String viewCanvasGet​(java.lang.String version, java.lang.String objectIdentifier, java.lang.String canvasName, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)
      Direct link for viewing a specified canvas (page) used for citation.https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb00107186/canvas/1
      java.lang.String viewExtendedPresentationGet​(java.lang.String identifier, org.springframework.ui.Model model)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtendedViewController

        public ExtendedViewController()
    • Method Detail

      • viewExtendedPresentationGet

        @RequestMapping(value="/presentation/{identifier}/view.html",
                        method=GET)
        public java.lang.String viewExtendedPresentationGet​(@PathVariable
                                                            java.lang.String identifier,
                                                            org.springframework.ui.Model model)
      • viewCanvasGet

        @RequestMapping(value="/presentation/{version}/{objectIdentifier}/canvas/{canvasName}/view",
                        method=GET)
        public java.lang.String viewCanvasGet​(@PathVariable
                                              java.lang.String version,
                                              @PathVariable
                                              java.lang.String objectIdentifier,
                                              @PathVariable
                                              java.lang.String canvasName,
                                              org.springframework.ui.Model model,
                                              javax.servlet.http.HttpServletRequest request)
                                       throws ResolvingException,
                                              de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException,
                                              InvalidDataException
        Direct link for viewing a specified canvas (page) used for citation.https://api.digitale-sammlungen.de/iiif/presentation/v2/bsb00107186/canvas/1
        Parameters:
        version - api version
        objectIdentifier - object identifier
        canvasName - name of canvas
        model - mvc model
        request - request
        Returns:
        canvas specific view
        Throws:
        ResolvingException - if identifier of manifest can not be resolved
        de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceNotFoundException - if manifest not found
        InvalidDataException - if manifest can't be read