maspack.util
Class GetPropertyAction

java.lang.Object
  extended by 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);


Constructor Summary
GetPropertyAction()
           
GetPropertyAction(java.lang.String propName)
           
GetPropertyAction(java.lang.String propName, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.Object run()
           
 GetPropertyAction setParameters(java.lang.String propName)
           
 GetPropertyAction setParameters(java.lang.String propName, java.lang.String defaultValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetPropertyAction

public GetPropertyAction()

GetPropertyAction

public GetPropertyAction(java.lang.String propName)

GetPropertyAction

public GetPropertyAction(java.lang.String propName,
                         java.lang.String defaultValue)
Method Detail

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)