Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.java.security.action
Class GetPropertyAction  view GetPropertyAction download GetPropertyAction.java

java.lang.Object
  extended bygnu.java.security.action.GetPropertyAction
All Implemented Interfaces:
java.security.PrivilegedAction

public class GetPropertyAction
extends java.lang.Object
implements java.security.PrivilegedAction

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);


Field Summary
(package private)  java.lang.String name
           
(package private)  java.lang.String value
           
 
Constructor Summary
GetPropertyAction()
           
GetPropertyAction(java.lang.String propName)
           
GetPropertyAction(java.lang.String propName, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.Object run()
          This method performs an operation that requires higher privileges to perform.
 GetPropertyAction setParameters(java.lang.String propName)
           
 GetPropertyAction setParameters(java.lang.String propName, java.lang.String defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name

value

java.lang.String value
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()
Description copied from interface: java.security.PrivilegedAction
This method performs an operation that requires higher privileges to perform. It is called when a section of code invokes AccessController.doPrivileged().

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)