Package org.apache.cxf.common.util
Class SystemPropertyAction
java.lang.Object
org.apache.cxf.common.util.SystemPropertyAction
- All Implemented Interfaces:
PrivilegedAction<String>
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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;run()
-
Method Details
-
run
- Specified by:
run
in interfacePrivilegedAction<String>
-
getProperty
-
getProperty
-
getPropertyOrNull
Get the system property via the AccessController, but if a SecurityException is raised, just return null;- Parameters:
name
-
-
getInteger
Get the integer system property via the AccessController, but if a SecurityException is raised, just return the default;- Parameters:
name
- - system property namedef
- - the default value if the system property does not exist or cannot be acquired
-