public abstract class ConfigurationProperties extends Object
| Constructor and Description |
|---|
ConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
static ConfigurationProperties |
getBean(javax.servlet.http.HttpServlet servlet) |
static ConfigurationProperties |
getBean(javax.servlet.http.HttpSession session) |
static ConfigurationProperties |
getBean(javax.servlet.ServletConfig servletConfig) |
static ConfigurationProperties |
getBean(javax.servlet.ServletContext context) |
static ConfigurationProperties |
getBean(javax.servlet.ServletContextEvent sce) |
static ConfigurationProperties |
getBean(javax.servlet.ServletRequest request) |
abstract String |
getProperty(String key)
Get the value of the property, or
null if the property has
not been assigned a value. |
abstract String |
getProperty(String key,
String defaultValue)
Get the value of the property, or use the default value if the property
has not been assigned a value.
|
abstract Map<String,String> |
getPropertyMap()
Get a copy of the map of the configuration properties and their settings.
|
protected static void |
setBean(javax.servlet.ServletContext context,
ConfigurationProperties bean)
Protected access, so the Stub class can call it for unit tests.
|
public static ConfigurationProperties getBean(javax.servlet.ServletRequest request)
public static ConfigurationProperties getBean(javax.servlet.http.HttpSession session)
public static ConfigurationProperties getBean(javax.servlet.http.HttpServlet servlet)
public static ConfigurationProperties getBean(javax.servlet.ServletContextEvent sce)
public static ConfigurationProperties getBean(javax.servlet.ServletConfig servletConfig)
public static ConfigurationProperties getBean(javax.servlet.ServletContext context)
protected static void setBean(javax.servlet.ServletContext context,
ConfigurationProperties bean)
public abstract String getProperty(String key)
null if the property has
not been assigned a value.public abstract String getProperty(String key, String defaultValue)
Copyright © 2022. All rights reserved.