public final class SystemPropertyAction extends Object implements PrivilegedAction<String>
Modifier and Type | Method and Description |
---|---|
static int |
getInteger(String name,
int def)
Get the integer system property via the AccessController, but if a SecurityException is
raised, just return the default;
|
static String |
getProperty(String name) |
static String |
getProperty(String name,
String def) |
static String |
getPropertyOrNull(String name)
Get the system property via the AccessController, but if a SecurityException is
raised, just return null;
|
String |
run() |
public String run()
run
in interface PrivilegedAction<String>
public static String getPropertyOrNull(String name)
name
- public static int getInteger(String name, int def)
name
- - system property namedef
- - the default value if the system property does not exist or cannot be acquiredApache CXF