Class MCRViewerResource

java.lang.Object
org.mycore.viewer.resources.MCRViewerResource

@Path("/viewer") public class MCRViewerResource extends Object
Base resource for the mycore image viewer.
Author:
Matthias Eichner, Sebastian Hofmann
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected MCRContent
    getContent(jakarta.servlet.http.HttpServletRequest req)
     
    jakarta.ws.rs.core.Response
    show(jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.Request jaxReq, jakarta.servlet.ServletContext context, jakarta.servlet.ServletConfig config)
     
    jakarta.ws.rs.core.Response
    showIIIF(jakarta.servlet.http.HttpServletRequest request, jakarta.ws.rs.core.Request jaxReq, jakarta.servlet.ServletContext context, jakarta.servlet.ServletConfig config)
     

    Methods inherited from class java.lang.Object

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

    • MCRViewerResource

      public MCRViewerResource()
  • Method Details

    • show

      @GET @Path("{derivate}{path: (/[^?#]*)?}") public jakarta.ws.rs.core.Response show(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.ws.rs.core.Request jaxReq, @Context jakarta.servlet.ServletContext context, @Context jakarta.servlet.ServletConfig config) throws Exception
      Throws:
      Exception
    • showIIIF

      @GET @Path("iiif/{derivate}{path: (/[^?#]*)?}") public jakarta.ws.rs.core.Response showIIIF(@Context jakarta.servlet.http.HttpServletRequest request, @Context jakarta.ws.rs.core.Request jaxReq, @Context jakarta.servlet.ServletContext context, @Context jakarta.servlet.ServletConfig config) throws Exception
      Throws:
      Exception
    • getContent

      protected MCRContent getContent(jakarta.servlet.http.HttpServletRequest req) throws Exception
      Throws:
      Exception