public class GetPropertyAction
extends java.lang.Object
implements java.security.PrivilegedAction<java.lang.Object>
GetPropertyAction action = new GetPropertyAction("http.proxyPort");
String port = AccessController.doPrivileged(action);
Constructor and Description |
---|
GetPropertyAction() |
GetPropertyAction(java.lang.String propName) |
GetPropertyAction(java.lang.String propName,
java.lang.String defaultValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
run() |
GetPropertyAction |
setParameters(java.lang.String propName) |
GetPropertyAction |
setParameters(java.lang.String propName,
java.lang.String defaultValue) |
public GetPropertyAction()
public GetPropertyAction(java.lang.String propName)
public GetPropertyAction(java.lang.String propName, java.lang.String defaultValue)
public java.lang.Object run()
run
in interface java.security.PrivilegedAction<java.lang.Object>
public GetPropertyAction setParameters(java.lang.String propName)
public GetPropertyAction setParameters(java.lang.String propName, java.lang.String defaultValue)