Package digilib.conf
Class PDFServletConfiguration
- java.lang.Object
-
- digilib.util.ParameterMap
-
- digilib.conf.DigilibConfiguration
-
- digilib.conf.DigilibServletConfiguration
-
- digilib.conf.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
-
-
Field Summary
Fields Modifier and Type Field Description static String
PDF_CACHEDIR_KEY
static String
PDF_EXECUTOR_KEY
static String
PDF_IMAGEEXECUTOR_KEY
static String
PDF_SERVLET_CONFIG_KEY
static String
PDF_WORKDIR_KEY
-
Fields inherited from class digilib.conf.DigilibServletConfiguration
AUTHN_OP_KEY, AUTHZ_OP_KEY, DIR_CACHE_KEY, IMAGEEXECUTOR_KEY, SERVLET_CONFIG_KEY, webappStartTime
-
Fields inherited from class digilib.conf.DigilibConfiguration
isLoggingConfigured, logger, propertiesFileName
-
Fields inherited from class digilib.util.ParameterMap
options, params
-
-
Constructor Summary
Constructors Constructor Description PDFServletConfiguration()
Constructs PDFServletConfiguration and defines all parameters and their default values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(javax.servlet.ServletContext context)
protected void
configurePdfServlet(javax.servlet.ServletContext context)
void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent cte)
Initialisation on first run.static String
getClassVersion()
static DigilibServletConfiguration
getCurrentConfig(javax.servlet.ServletContext context)
Returns the current DigilibConfiguration from the context.String
getVersion()
-
Methods inherited from class digilib.conf.DigilibServletConfiguration
expandBaseDirList, getContextConfig, getContextConfig, readConfig, readConfigEntries, setContextConfig, setupLogging
-
Methods inherited from class digilib.conf.DigilibConfiguration
configure, readConfig, setSpecialValueFromString, setupLogging
-
Methods inherited from class digilib.util.ParameterMap
cloneInstance, get, getAsBoolean, getAsFile, getAsFloat, getAsInt, getAsString, getInstance, getOptions, getParameters, getParams, getValue, hasOption, hasValue, initOptions, initParams, newParameter, newParameter, put, put, setOptions, setParams, setValue, setValue, setValue, setValueFromString
-
-
-
-
Field Detail
-
PDF_SERVLET_CONFIG_KEY
public static final String PDF_SERVLET_CONFIG_KEY
- See Also:
- Constant Field Values
-
PDF_IMAGEEXECUTOR_KEY
public static final String PDF_IMAGEEXECUTOR_KEY
- See Also:
- Constant Field Values
-
PDF_EXECUTOR_KEY
public static final String PDF_EXECUTOR_KEY
- See Also:
- Constant Field Values
-
PDF_WORKDIR_KEY
public static final String PDF_WORKDIR_KEY
- See Also:
- Constant Field Values
-
PDF_CACHEDIR_KEY
public static final String PDF_CACHEDIR_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClassVersion
public static String getClassVersion()
-
getVersion
public String getVersion()
- Overrides:
getVersion
in classDigilibServletConfiguration
-
configure
public void configure(javax.servlet.ServletContext context)
- Overrides:
configure
in classDigilibServletConfiguration
-
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 interfacejavax.servlet.ServletContextListener
- Overrides:
contextInitialized
in classDigilibServletConfiguration
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
- Overrides:
contextDestroyed
in classDigilibServletConfiguration
-
getCurrentConfig
public static DigilibServletConfiguration getCurrentConfig(javax.servlet.ServletContext context)
Returns the current DigilibConfiguration from the context.- Parameters:
context
-- Returns:
-
-