public final class AppSettings extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AppSettings.LinkedProperties
Properties with keys in order of insertion
|
Modifier and Type | Method and Description |
---|---|
static AppSettings |
get() |
String |
get(String key) |
String |
get(String key,
String defaultValue) |
String |
getBaseURL()
Get the application base URL.
|
boolean |
getBoolean(String key,
boolean defaultValue) |
int |
getInt(String key,
int defaultValue) |
List<String> |
getList(String key) |
<T> List<T> |
getList(String key,
java.util.function.Function<String,T> mapper) |
String |
getPath(String key,
String defaultValue) |
Properties |
getProperties()
For internal use only.
|
boolean |
isProduction() |
public static AppSettings get()
public <T> List<T> getList(String key, java.util.function.Function<String,T> mapper)
public int getInt(String key, int defaultValue)
public boolean getBoolean(String key, boolean defaultValue)
public String getBaseURL()
This method tries to calculate the base url from current http request. If the method is
called outside of http request scope, it returns the value of application.baseUrl
configuration setting.
public boolean isProduction()
public Properties getProperties()