Top Description Fields Constructors Methods
io.netty.util.internal

public final Class SystemPropertyUtil

extends Object
Class Inheritance
Static Imports
io.netty.util.internal.ObjectUtil.checkNonEmpty

A collection of utility methods to retrieve and parse the values of the Java system properties.

Field Summary

Modifier and TypeField and Description
private static final InternalLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static boolean
contains(String key)

Returns true if and only if the system property with the specified key exists.

public static String

Returns:

the property value or null
get
(String key)

Returns the value of the Java system property with the specified key, while falling back to null if the property access fails.

public static String

Returns:

the property value. def if there's no such property or if an access to the specified property is not allowed.
get
(final String key, String def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

public static boolean

Returns:

the property value. def if there's no such property or if an access to the specified property is not allowed.
getBoolean
(String key, boolean def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

public static int

Returns:

the property value. def if there's no such property or if an access to the specified property is not allowed.
getInt
(String key, int def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

public static long

Returns:

the property value. def if there's no such property or if an access to the specified property is not allowed.
getLong
(String key, long def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final InternalLogger logger

Constructor Detail

SystemPropertyUtilback to summary
private SystemPropertyUtil()

Method Detail

containsback to summary
public static boolean contains(String key)

Returns true if and only if the system property with the specified key exists.

getback to summary
public static String get(String key)

Returns the value of the Java system property with the specified key, while falling back to null if the property access fails.

Returns:String

the property value or null

getback to summary
public static String get(final String key, String def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

Returns:String

the property value. def if there's no such property or if an access to the specified property is not allowed.

getBooleanback to summary
public static boolean getBoolean(String key, boolean def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

Returns:boolean

the property value. def if there's no such property or if an access to the specified property is not allowed.

getIntback to summary
public static int getInt(String key, int def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

Returns:int

the property value. def if there's no such property or if an access to the specified property is not allowed.

getLongback to summary
public static long getLong(String key, long def)

Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails.

Returns:long

the property value. def if there's no such property or if an access to the specified property is not allowed.