Package digilib.conf

Class PDFServletConfiguration

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    @WebListener
    public class PDFServletConfiguration
    extends DigilibServletConfiguration
    Class to hold the digilib servlet configuration parameters. The parameters can be read from the digilib-config file and be passed to other servlets or beans.
    Author:
    casties
    • Constructor Detail

      • PDFServletConfiguration

        public PDFServletConfiguration()
        Constructs PDFServletConfiguration and defines all parameters and their default values.
    • Method Detail

      • getClassVersion

        public static String getClassVersion()
      • configurePdfServlet

        protected void configurePdfServlet​(javax.servlet.ServletContext context)
        Parameters:
        context -
      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent cte)
        Initialisation on first run.
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class DigilibServletConfiguration
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent sce)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
        Overrides:
        contextDestroyed in class DigilibServletConfiguration
      • getCurrentConfig

        public static DigilibServletConfiguration getCurrentConfig​(javax.servlet.ServletContext context)
        Returns the current DigilibConfiguration from the context.
        Parameters:
        context -
        Returns: