Package org.apache.cxf.common.util
Class SystemPropertyAction
- java.lang.Object
- 
- org.apache.cxf.common.util.SystemPropertyAction
 
- 
- All Implemented Interfaces:
- PrivilegedAction<String>
 
 public final class SystemPropertyAction extends Object implements PrivilegedAction<String> 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static intgetInteger(String name, int def)Get the integer system property via the AccessController, but if a SecurityException is raised, just return the default;static StringgetProperty(String name)static StringgetProperty(String name, String def)static StringgetPropertyOrNull(String name)Get the system property via the AccessController, but if a SecurityException is raised, just return null;Stringrun()
 
- 
- 
- 
Method Detail- 
runpublic String run() - Specified by:
- runin interface- PrivilegedAction<String>
 
 - 
getPropertyOrNullpublic static String getPropertyOrNull(String name) Get the system property via the AccessController, but if a SecurityException is raised, just return null;- Parameters:
- name-
 
 - 
getIntegerpublic 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;- Parameters:
- name- - system property name
- def- - the default value if the system property does not exist or cannot be acquired
 
 
- 
 
-