Helper routines for accessing properties.
More...
|
| 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.
|
| |
| 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.
|
| |
|
| static final String | jnlp_prefix = "jnlp." |
| | trusted build-in property prefix 'jnlp.
|
| |
| static final String | javaws_prefix = "javaws." |
| | trusted build-in property prefix 'javaws.
|
| |
|
| static final void | addTrustedPrefix (final String prefix) throws SecurityException |
| |
Helper routines for accessing properties.
Definition at line 36 of file PropertyAccess.java.
◆ addTrustedPrefix()
| static final void org.jau.sys.PropertyAccess.addTrustedPrefix |
( |
final String | prefix | ) |
throws SecurityException |
|
staticprotected |
- Parameters
-
| prefix | New prefix to be registered as trusted. |
- Exceptions
-
Definition at line 63 of file PropertyAccess.java.
◆ getBooleanProperty() [1/2]
| static final boolean org.jau.sys.PropertyAccess.getBooleanProperty |
( |
final String | property, |
|
|
final boolean | jnlpAlias ) |
|
static |
◆ getBooleanProperty() [2/2]
| static final boolean org.jau.sys.PropertyAccess.getBooleanProperty |
( |
final String | property, |
|
|
final boolean | jnlpAlias, |
|
|
final boolean | defaultValue ) |
|
static |
◆ getIntProperty()
| static final int org.jau.sys.PropertyAccess.getIntProperty |
( |
final String | property, |
|
|
final boolean | jnlpAlias, |
|
|
final int | defaultValue ) |
|
static |
◆ getLongProperty()
| static final long org.jau.sys.PropertyAccess.getLongProperty |
( |
final String | property, |
|
|
final boolean | jnlpAlias, |
|
|
final long | defaultValue ) |
|
static |
◆ 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
-
| propertyKey | the property name to query. |
| jnlpAlias | true 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
-
| NullPointerException | if the property name is null |
| IllegalArgumentException | if the property name is of length 0 |
| SecurityException | if access is not allowed to the given propertyKey |
- See also
- System#getProperty(String)
Definition at line 139 of file PropertyAccess.java.
◆ 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 |
◆ isPropertyDefined()
| static final boolean org.jau.sys.PropertyAccess.isPropertyDefined |
( |
final String | property, |
|
|
final boolean | jnlpAlias ) |
|
static |
◆ isTrusted()
| static final boolean org.jau.sys.PropertyAccess.isTrusted |
( |
final String | propertyKey | ) |
|
|
static |
◆ javaws_prefix
| final String org.jau.sys.PropertyAccess.javaws_prefix = "javaws." |
|
static |
◆ jnlp_prefix
| final String org.jau.sys.PropertyAccess.jnlp_prefix = "jnlp." |
|
static |
The documentation for this class was generated from the following file: