maspack.util
Class GetPropertyAction
java.lang.Object
maspack.util.GetPropertyAction
- All Implemented Interfaces:
- java.security.PrivilegedAction
public class GetPropertyAction
- extends java.lang.Object
- implements java.security.PrivilegedAction
Taken from gnu.java.security.action.
PrivilegedAction implementation that calls System.getProperty() with the
property name passed to its constructor.
Example of use:
GetPropertyAction action = new GetPropertyAction("http.proxyPort");
String port = AccessController.doPrivileged(action);
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetPropertyAction
public GetPropertyAction()
GetPropertyAction
public GetPropertyAction(java.lang.String propName)
GetPropertyAction
public GetPropertyAction(java.lang.String propName,
java.lang.String defaultValue)
run
public java.lang.Object run()
- Specified by:
run
in interface java.security.PrivilegedAction
setParameters
public GetPropertyAction setParameters(java.lang.String propName)
setParameters
public GetPropertyAction setParameters(java.lang.String propName,
java.lang.String defaultValue)