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
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
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
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
ConstructorsConstructorDescriptionConstructs PDFServletConfiguration and defines all parameters and their default values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
static DigilibServletConfiguration
getCurrentConfig
(javax.servlet.ServletContext context) Returns the current DigilibConfiguration from the context.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 Details
-
PDF_SERVLET_CONFIG_KEY
- See Also:
-
PDF_IMAGEEXECUTOR_KEY
- See Also:
-
PDF_EXECUTOR_KEY
- See Also:
-
PDF_WORKDIR_KEY
- See Also:
-
PDF_CACHEDIR_KEY
- See Also:
-
-
Constructor Details
-
PDFServletConfiguration
public PDFServletConfiguration()Constructs PDFServletConfiguration and defines all parameters and their default values.
-
-
Method Details
-
getClassVersion
-
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
Returns the current DigilibConfiguration from the context.- Parameters:
context
-- Returns:
-