Package digilib.conf
Class ManifestServletConfiguration
java.lang.Object
digilib.util.ParameterMap
digilib.conf.DigilibConfiguration
digilib.conf.DigilibServletConfiguration
digilib.conf.ManifestServletConfiguration
- 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
FieldsFields 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 DigilibServletConfiguration and defines all parameters and their default values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(javax.servlet.ServletContext context) static String
protected DigilibServletConfiguration
getContextConfig
(javax.servlet.ServletContext context) Returns the current DigilibConfiguration from the context.static DigilibServletConfiguration
getCurrentConfig
(javax.servlet.ServletContext context) Returns the current ManifestServletConfiguration from the context.non-static getVersion for Java inheritancevoid
setContextConfig
(javax.servlet.ServletContext context) Sets the current DigilibConfiguration in the context.Methods inherited from class digilib.conf.DigilibServletConfiguration
contextDestroyed, contextInitialized, expandBaseDirList, getContextConfig, readConfig, readConfigEntries, 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
-
MANIFEST_SERVLET_CONFIG_KEY
- See Also:
-
-
Constructor Details
-
ManifestServletConfiguration
public ManifestServletConfiguration()Constructs DigilibServletConfiguration and defines all parameters and their default values.
-
-
Method Details
-
getClassVersion
-
getVersion
non-static getVersion for Java inheritance- Overrides:
getVersion
in classDigilibServletConfiguration
-
configure
public void configure(javax.servlet.ServletContext context) - Overrides:
configure
in classDigilibServletConfiguration
-
setContextConfig
public void setContextConfig(javax.servlet.ServletContext context) Description copied from class:DigilibServletConfiguration
Sets the current DigilibConfiguration in the context.- Overrides:
setContextConfig
in classDigilibServletConfiguration
- Parameters:
context
- the ServletContext
-
getCurrentConfig
Returns the current ManifestServletConfiguration from the context.- Parameters:
context
- the ServletContext- Returns:
- the DigilibServletConfiguration
-
getContextConfig
Returns the current DigilibConfiguration from the context. (non-static method, for Java inheritance)- Overrides:
getContextConfig
in classDigilibServletConfiguration
- Parameters:
context
- the ServletContext- Returns:
- the DigilibServletConfiguration
-