Package digilib.conf
Class TextServletConfiguration
java.lang.Object
digilib.util.ParameterMap
digilib.conf.DigilibConfiguration
digilib.conf.DigilibServletConfiguration
digilib.conf.TextServletConfiguration
- 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 TextServletConfiguration 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
-
TEXT_SERVLET_CONFIG_KEY
- See Also:
-
TEXT_DIR_CACHE_KEY
- See Also:
-
-
Constructor Details
-
TextServletConfiguration
public TextServletConfiguration()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) Sets the current DigilibConfiguration in the context.- Overrides:
setContextConfig
in classDigilibServletConfiguration
- Parameters:
context
-
-
getCurrentConfig
Returns the current TextServletConfiguration from the context.- Parameters:
context
-- Returns:
-
getContextConfig
Returns the current DigilibConfiguration from the context. (non-static method, for Java inheritance)- Overrides:
getContextConfig
in classDigilibServletConfiguration
- Parameters:
context
-- Returns:
-