jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | List of all members
org.jau.sys.PropertyAccess Class Reference

Helper routines for accessing properties. More...

Inheritance diagram for org.jau.sys.PropertyAccess:
Collaboration diagram for org.jau.sys.PropertyAccess:

Static Public Member Functions

static final boolean isTrusted (final String propertyKey)
 
static final int getIntProperty (final String property, final boolean jnlpAlias, final int defaultValue)
 
static final long getLongProperty (final String property, final boolean jnlpAlias, final long defaultValue)
 
static final boolean getBooleanProperty (final String property, final boolean jnlpAlias)
 
static final boolean getBooleanProperty (final String property, final boolean jnlpAlias, final boolean defaultValue)
 
static final boolean isPropertyDefined (final String property, final boolean jnlpAlias)
 
static final String getProperty (final String propertyKey, final boolean jnlpAlias) throws SecurityException, NullPointerException, IllegalArgumentException
 Query the property with the name propertyKey. More...
 
static final String getProperty (final String propertyKey, final boolean jnlpAlias, final String defaultValue) throws SecurityException, NullPointerException, IllegalArgumentException
 See getProperty(String, boolean), additionally allows a defaultValue if property value is null. More...
 

Static Public Attributes

static final String jnlp_prefix = "jnlp."
 trusted build-in property prefix 'jnlp. More...
 
static final String javaws_prefix = "javaws."
 trusted build-in property prefix 'javaws. More...
 

Static Protected Member Functions

static final void addTrustedPrefix (final String prefix) throws SecurityException
 

Detailed Description

Helper routines for accessing properties.

Definition at line 36 of file PropertyAccess.java.

Member Function Documentation

◆ addTrustedPrefix()

static final void org.jau.sys.PropertyAccess.addTrustedPrefix ( final String  prefix) throws SecurityException
staticprotected
Parameters
prefixNew prefix to be registered as trusted.
Exceptions
SecurityExceptionas thrown by SecurityUtil#checkAllPermissions().

Definition at line 63 of file PropertyAccess.java.

Here is the call graph for this function:

◆ getBooleanProperty() [1/2]

static final boolean org.jau.sys.PropertyAccess.getBooleanProperty ( final String  property,
final boolean  jnlpAlias 
)
static
See also
getProperty(String, boolean)

Definition at line 102 of file PropertyAccess.java.

Here is the call graph for this function:

◆ getBooleanProperty() [2/2]

static final boolean org.jau.sys.PropertyAccess.getBooleanProperty ( final String  property,
final boolean  jnlpAlias,
final boolean  defaultValue 
)
static
See also
getProperty(String, boolean)

Definition at line 107 of file PropertyAccess.java.

Here is the call graph for this function:

◆ getIntProperty()

static final int org.jau.sys.PropertyAccess.getIntProperty ( final String  property,
final boolean  jnlpAlias,
final int  defaultValue 
)
static
See also
getProperty(String, boolean)

Definition at line 78 of file PropertyAccess.java.

Here is the call graph for this function:

◆ getLongProperty()

static final long org.jau.sys.PropertyAccess.getLongProperty ( final String  property,
final boolean  jnlpAlias,
final long  defaultValue 
)
static
See also
getProperty(String, boolean)

Definition at line 90 of file PropertyAccess.java.

Here is the call graph for this function:

◆ getProperty() [1/2]

static final String org.jau.sys.PropertyAccess.getProperty ( final String  propertyKey,
final boolean  jnlpAlias 
) throws SecurityException, NullPointerException, IllegalArgumentException
static

Query the property with the name propertyKey.

If jnlpAlias is true and the plain propertyKey could not be resolved, an attempt to resolve the JNLP aliased trusted property is made.
Example: For the propertyName OneTwo, the jnlp alias name is jnlp.OneTwo, which is considered trusted.

Parameters
propertyKeythe property name to query.
jnlpAliastrue if a fallback attempt to query the JNLP aliased trusted property shall be made, otherwise false.
Returns
the property value if exists, or null
Exceptions
NullPointerExceptionif the property name is null
IllegalArgumentExceptionif the property name is of length 0
SecurityExceptionif access is not allowed to the given propertyKey
See also
System::getProperty(String)

Definition at line 139 of file PropertyAccess.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getProperty() [2/2]

static final String org.jau.sys.PropertyAccess.getProperty ( final String  propertyKey,
final boolean  jnlpAlias,
final String  defaultValue 
) throws SecurityException, NullPointerException, IllegalArgumentException
static

See getProperty(String, boolean), additionally allows a defaultValue if property value is null.

Definition at line 168 of file PropertyAccess.java.

Here is the call graph for this function:

◆ isPropertyDefined()

static final boolean org.jau.sys.PropertyAccess.isPropertyDefined ( final String  property,
final boolean  jnlpAlias 
)
static
See also
getProperty(String, boolean)

Definition at line 116 of file PropertyAccess.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTrusted()

static final boolean org.jau.sys.PropertyAccess.isTrusted ( final String  propertyKey)
static

Definition at line 68 of file PropertyAccess.java.

Here is the caller graph for this function:

Member Data Documentation

◆ javaws_prefix

final String org.jau.sys.PropertyAccess.javaws_prefix = "javaws."
static

trusted build-in property prefix 'javaws.

'

Definition at line 40 of file PropertyAccess.java.

◆ jnlp_prefix

final String org.jau.sys.PropertyAccess.jnlp_prefix = "jnlp."
static

trusted build-in property prefix 'jnlp.

'

Definition at line 38 of file PropertyAccess.java.


The documentation for this class was generated from the following file: