Class MCRViewerBaseConfiguration

java.lang.Object
org.mycore.viewer.configuration.MCRViewerConfiguration
org.mycore.viewer.configuration.MCRViewerBaseConfiguration
Direct Known Subclasses:
MCRViewerEPUBConfiguration, MCRViewerIIIFConfiguration, MCRViewerMetsConfiguration, MCRViewerPDFConfiguration

public abstract class MCRViewerBaseConfiguration extends MCRViewerConfiguration
Base configuration for the mycore image viewer. Sets the following parameter:
webApplicationBaseURL
base URL of the mycore system
derivate
name of the derivate which should be displayed.
filePath
path of the file which should be displayed (in the derivate)
doctype
the type of the structure e.g. (mets/pdf)
mobile
should the mobile or the desktop client started.
i18nURL
URL to the i18n.json
lang
current selected language
Author:
Matthias Eichner
  • Constructor Details

    • MCRViewerBaseConfiguration

      public MCRViewerBaseConfiguration()
  • Method Details

    • setup

      public MCRViewerConfiguration setup(jakarta.servlet.http.HttpServletRequest request)
      Description copied from class: MCRViewerConfiguration
      Setup's the configuration with the request.
      Overrides:
      setup in class MCRViewerConfiguration
      Parameters:
      request - the request which should be parsed to build this configuration.
      Returns:
      itself
    • isMobile

      protected boolean isMobile(jakarta.servlet.http.HttpServletRequest req)
    • isFramed

      protected boolean isFramed(jakarta.servlet.http.HttpServletRequest req)
    • getDocType

      public abstract String getDocType(jakarta.servlet.http.HttpServletRequest request)