@Import(value=nc.ird.cantharella.service.config.ServiceContext.class) @Configuration public abstract class WebContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
appDebugProperty
Debug mode
|
protected boolean |
appOptimizeProperty
Optimize mode
|
static String |
AUTH_COOKIE_KEY
Cookie key for authentification
|
static int |
AUTH_COOKIE_MAX_AGE
Cookie max age for authentification
|
static Map<Locale,Map<String,String>> |
COUNTRIES
Countries: Locale -> country code + country name (sorted by country name)
|
static Map<Locale,List<String>> |
COUNTRY_CODES
Country codes: Locale -> country code (sorted by country name)
|
static int |
DOUBLE_MAX_FRACTION_DIGIT
The maximum number of digits allowed in the fraction portion of doubles *
|
static org.apache.wicket.util.time.Duration |
HTTP_CACHE_DURATION
HTTP cache duration
|
static org.apache.wicket.util.lang.Bytes |
HTTP_MAXIMUM_UPLOAD
HTTP maximum upload
|
static int |
HTTP_REQUEST_LOGGER_WINDOW_SIZE
HTTP request logger window size
|
static int |
HTTP_SESSION_MAX_PAGE_MAPS
HTTP session max page maps
|
static org.apache.wicket.util.time.Duration |
HTTP_TIME_OUT
HTTP time out
|
static Map<Locale,List<String>> |
LANGUAGE_CODES
Country codes: Locale -> language code (sorted by country name)
|
static Map<Locale,Map<String,String>> |
LANGUAGES
Countries: Locale -> language code + language name (sorted by language name)
|
protected String |
log4jConfig
Log4j configuration filepath
|
static int |
PERCENT_PRECISION
Percent format precision
|
static List<Integer> |
REFERENTIEL_CODES
Référentiels codes
|
static int |
ROWS_PER_PAGE
The maximum rows number displayed for a list page
|
protected String |
wicketConfiguration
Wicket configuration string ("development" or "deployment")
|
| Constructor and Description |
|---|
WebContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
initLog4j()
Init the log4j configuration filepath
|
static org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
properties()
Set the web layer properties for the cantharella configuration
|
org.apache.wicket.protocol.http.WebApplication |
webApplication() |
org.springframework.context.support.MessageSourceAccessor |
webMessageSource() |
ModelValidator |
webModelValidator() |
public static final String AUTH_COOKIE_KEY
public static final int AUTH_COOKIE_MAX_AGE
public static final Map<Locale,Map<String,String>> COUNTRIES
public static final Map<Locale,List<String>> COUNTRY_CODES
public static final Map<Locale,Map<String,String>> LANGUAGES
public static final Map<Locale,List<String>> LANGUAGE_CODES
public static final org.apache.wicket.util.time.Duration HTTP_CACHE_DURATION
public static final org.apache.wicket.util.lang.Bytes HTTP_MAXIMUM_UPLOAD
public static final int HTTP_REQUEST_LOGGER_WINDOW_SIZE
public static final int HTTP_SESSION_MAX_PAGE_MAPS
public static final org.apache.wicket.util.time.Duration HTTP_TIME_OUT
public static final int PERCENT_PRECISION
public static final int DOUBLE_MAX_FRACTION_DIGIT
public static final int ROWS_PER_PAGE
@Value(value="${app.debug}")
protected boolean appDebugProperty
@Value(value="${app.optimize}")
protected boolean appOptimizeProperty
@Value(value="${wicket.configuration}")
protected String wicketConfiguration
@Value(value="${log4j.config}")
protected String log4jConfig
@Bean public org.springframework.context.support.MessageSourceAccessor webMessageSource()
@Bean public ModelValidator webModelValidator()
@Bean public org.apache.wicket.protocol.http.WebApplication webApplication()
@Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer properties()
@PostConstruct public void initLog4j() throws FileNotFoundException
FileNotFoundException - If the config file is not foundCopyright © 2009–2014 IRD. All rights reserved.