public final class WebClientConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_FOLDER
The folder contiaining the customized configuration files.
|
static String |
DEFAULT_FOLDER
The folder containing the default configuration files
|
| Modifier and Type | Method and Description |
|---|---|
static Parameter |
getContextParameter(String name)
Loads a parameter from the servlet context (web.xml and includes).
|
static Parameter |
getContextParameter(String name,
javax.servlet.http.HttpSession session)
Loads a parameter from the servlet context (web.xml and includes).
|
static Parameter |
getContextParameter(String name,
javax.servlet.ServletContext context)
Loads a parameter from the servlet context (web.xml and includes).
|
static Map<String,String> |
getCustomParameters(String filename,
boolean caseSensitive)
Loads all parameters from the specified file in the /custom-config/ folder.
|
static Parameter |
getParameter(ConfigurationSource source,
String name)
Loads a parameter with the specified name from the specified source.
|
static Parameter |
getParameter(String filename,
String name)
Loads a parameter from the specified file.
|
static Map<String,String> |
getParameters(ConfigurationSource source,
boolean caseSensitive)
Loads all parameters from the specified source.
|
static Map<String,String> |
getParameters(String filename,
boolean caseSensitive)
Loads all parameters from the specified file.
|
static void |
init(javax.servlet.ServletContext context)
Initializes the configuration by setting the servlet-context of the application.
|
static void |
shutdown()
Shuts down the WebClientConfiguration instance.
|
public static final String DEFAULT_FOLDER
public static final String CUSTOM_FOLDER
public static Parameter getContextParameter(String name)
ConfigurationSource.CONTEXT.
Note that this method uses Executions.getCurrent(), so you can call it from
within ZK-context only.name - the name of the parameterParameter containing the value. Never null.public static Parameter getContextParameter(String name, javax.servlet.http.HttpSession session)
ConfigurationSource.CONTEXT.
Use this method when you are outside of the ZK-context (e.g. in a servlet).name - the name of the parametersession - the current sessionParameter containing the value. Never null.public static Parameter getContextParameter(String name, javax.servlet.ServletContext context)
ConfigurationSource.CONTEXT.
Use this method when you are outside of the ZK-context (e.g. in a servlet).name - the name of the parametercontext - the current servlet-contextParameter containing the value. Never null.public static Parameter getParameter(ConfigurationSource source, String name)
source - the ConfigurationSource to load the parameter fromname - the name of the parameterpublic static Map<String,String> getParameters(ConfigurationSource source, boolean caseSensitive)
source - the ConfigurationSource to load the parameters fromcaseSensitive - if false, the returned map will be an instance of CaseInsensitiveMappublic static Parameter getParameter(String filename, String name)
filename - the name (with path) of the file to load the parameters from (RELATIVE to the configuration folders)name - the name of the parameterpublic static Map<String,String> getParameters(String filename, boolean caseSensitive)
filename - the name (with path) of the file to load the parameters from (RELATIVE to the configuration folders)caseSensitive - if false, the returned map will be an instance of CaseInsensitiveMappublic static Map<String,String> getCustomParameters(String filename, boolean caseSensitive)
filename - the name (with path) of the file to load the parameters from (RELATIVE to the configuration folder)caseSensitive - if false, the returned map will be an instance of CaseInsensitiveMappublic static void init(javax.servlet.ServletContext context)
context - the ServletContext of the applicationpublic static void shutdown()
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.