public final class AppSettings extends Object
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) |
String |
getPath(String key,
String defaultValue) |
Properties |
getProperties()
For internal use only.
|
boolean |
isProduction() |
public static AppSettings get()
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()