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
@WebListener public class ManifestServletConfiguration 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
MANIFEST_SERVLET_CONFIG_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 ManifestServletConfiguration()
Constructs DigilibServletConfiguration 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)
static String
getClassVersion()
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.String
getVersion()
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 Detail
-
MANIFEST_SERVLET_CONFIG_KEY
public static final String MANIFEST_SERVLET_CONFIG_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClassVersion
public static String getClassVersion()
-
getVersion
public String 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
public static DigilibServletConfiguration getCurrentConfig(javax.servlet.ServletContext context)
Returns the current ManifestServletConfiguration from the context.- Parameters:
context
- the ServletContext- Returns:
- the DigilibServletConfiguration
-
getContextConfig
protected DigilibServletConfiguration getContextConfig(javax.servlet.ServletContext context)
Returns the current DigilibConfiguration from the context. (non-static method, for Java inheritance)- Overrides:
getContextConfig
in classDigilibServletConfiguration
- Parameters:
context
- the ServletContext- Returns:
- the DigilibServletConfiguration
-
-