Package org.mycore.wcms2
Class MCRWebPagesSynchronizer
java.lang.Object
org.mycore.wcms2.MCRWebPagesSynchronizer
- All Implemented Interfaces:
MCRStartupHandler.AutoExecutable
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(String path) Returns an InputStream of the given resource.getName()
returns a name to display on start-up.static OutputStream
getOutputStream
(String path) Returns an OuputStream that writes to local webapp and to file insideMCR.WCMS2.DataDir
.int
If order is important returns as 'heigher' priority.static URL
Returns URL of the given resource.static File
static Path
static File
void
startUp
(jakarta.servlet.ServletContext servletContext) This method get executed byMCRStartupHandler.startUp(ServletContext)
-
Constructor Details
-
MCRWebPagesSynchronizer
public MCRWebPagesSynchronizer()
-
-
Method Details
-
getName
Description copied from interface:MCRStartupHandler.AutoExecutable
returns a name to display on start-up.- Specified by:
getName
in interfaceMCRStartupHandler.AutoExecutable
-
getPriority
public int getPriority()Description copied from interface:MCRStartupHandler.AutoExecutable
If order is important returns as 'heigher' priority.- Specified by:
getPriority
in interfaceMCRStartupHandler.AutoExecutable
-
startUp
public void startUp(jakarta.servlet.ServletContext servletContext) Description copied from interface:MCRStartupHandler.AutoExecutable
This method get executed byMCRStartupHandler.startUp(ServletContext)
- Specified by:
startUp
in interfaceMCRStartupHandler.AutoExecutable
-
getWCMSDataDir
-
getWCMSDataDirPath
-
getWebAppBaseDir
- Throws:
IOException
-
getOutputStream
Returns an OuputStream that writes to local webapp and to file insideMCR.WCMS2.DataDir
.- Throws:
IOException
-
getURL
Returns URL of the given resource. This URL may point to a file inside a JAR file inWEB-INF/lib
.- Parameters:
path
- should start with '/'- Returns:
- null, if no resource with that path could be found
- Throws:
MalformedURLException
-
getInputStream
Returns an InputStream of the given resource.- Parameters:
path
- should start with '/'- Returns:
- null, if no resource with that path could be found
-