Package org.mycore.viewer.configuration
Class MCRViewerBaseConfiguration
java.lang.Object
org.mycore.viewer.configuration.MCRViewerConfiguration
org.mycore.viewer.configuration.MCRViewerBaseConfiguration
- Direct Known Subclasses:
MCRViewerEPUBConfiguration
,MCRViewerIIIFConfiguration
,MCRViewerMetsConfiguration
,MCRViewerPDFConfiguration
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mycore.viewer.configuration.MCRViewerConfiguration
MCRViewerConfiguration.ResourceType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getDocType
(jakarta.servlet.http.HttpServletRequest request) protected boolean
isFramed
(jakarta.servlet.http.HttpServletRequest req) protected boolean
isMobile
(jakarta.servlet.http.HttpServletRequest req) setup
(jakarta.servlet.http.HttpServletRequest request) Setup's the configuration with the request.Methods inherited from class org.mycore.viewer.configuration.MCRViewerConfiguration
addCSS, addLocalCSS, addLocalScript, addLocalScript, addLocalScript, addScript, getDerivate, getFilePath, getProperties, getResources, isDebugMode, removeProperty, setProperty, toJSON, toXML
-
Constructor Details
-
MCRViewerBaseConfiguration
public MCRViewerBaseConfiguration()
-
-
Method Details
-
setup
Description copied from class:MCRViewerConfiguration
Setup's the configuration with the request.- Overrides:
setup
in classMCRViewerConfiguration
- 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
-