-
- All Implemented Interfaces:
public class StackPropertiesThe class contains a number of property names and their default values that we use to configure the behavior of the ice4j stack.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringBIND_RETRIESpublic final static intBIND_RETRIES_DEFAULT_VALUEpublic final static StringBIND_WILDCARDpublic final static StringFIRST_CTRAN_RETRANS_AFTERpublic final static StringMAX_CTRAN_RETRANS_TIMERpublic final static StringKEEP_CRANS_AFTER_A_RESPONSEpublic final static StringMAX_CTRAN_RETRANSMISSIONSpublic final static StringPROPAGATE_RECEIVED_RETRANSMISSIONSpublic final static StringALLOW_LINK_TO_GLOBAL_REACHABILITYpublic final static StringALWAYS_SIGNpublic final static StringREQUIRE_MESSAGE_INTEGRITYpublic final static StringNO_KEEP_ALIVESpublic final static StringNOMINATION_TIMERpublic final static StringALLOWED_INTERFACESpublic final static StringBLOCKED_INTERFACESpublic final static StringALLOWED_ADDRESSESpublic final static StringBLOCKED_ADDRESSES
-
Method Summary
Modifier and Type Method Description static StringgetString(String propertyName)Returns the String value of the specified property (minus all encompassing whitespaces)and null in case no property value was mapped against the specified propertyName, or in case the returned property string had zero length or contained whitespaces only. static Array<String>getStringArray(String propertyName, String regex)Returns the String array of the specified property, or null in case the returned property string array had zero length. static intgetInt(String propertyName, int defaultValue)Returns the value of a specific property as a signed decimal integer. static booleangetBoolean(String propertyName, boolean defaultValue)Gets the value of a specific property as a boolean. -
-
Method Detail
-
getString
static String getString(String propertyName)
Returns the String value of the specified property (minus all encompassing whitespaces)and null in case no property value was mapped against the specified propertyName, or in case the returned property string had zero length or contained whitespaces only.
- Parameters:
propertyName- the name of the property that is being queried.
-
getStringArray
static Array<String> getStringArray(String propertyName, String regex)
Returns the String array of the specified property, or null in case the returned property string array had zero length.
- Parameters:
propertyName- the name of the property that is being queried.regex- the delimiting regular expression
-
getInt
static int getInt(String propertyName, int defaultValue)
Returns the value of a specific property as a signed decimal integer. If a property with the specified property name exists, its string representation is parsed into a signed decimal integer according to the rules of parseInt. If parsing the value as a signed decimal integer fails or there is no value associated with the specified property name, defaultValue is returned.
- Parameters:
propertyName- the name of the property to get the value of as a signed decimal integerdefaultValue- the value to be returned if parsing the value of the specified property name as a signed decimal integer fails or there is no value associated with the specified property name in the System properties.
-
getBoolean
static boolean getBoolean(String propertyName, boolean defaultValue)
Gets the value of a specific property as a boolean. If the specified property name is associated with a value, the string representation of the value is parsed into a boolean according to the rules of parseBoolean . Otherwise, defaultValue is returned.
- Parameters:
propertyName- the name of the property to get the value of as a booleandefaultValue- the value to be returned if the specified property name is not associated with a value
-
-
-
-