public class StackProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_LINK_TO_GLOBAL_REACHABILITY
A property that allows us to specify whether we would expect link local
IPv6 addresses to be able to reach globally routable ones.
|
static String |
ALLOWED_ADDRESSES
The name of the property which specifies a ";"-separated list of IP
addresses that are allowed to be used for host candidate allocations.
|
static String |
ALLOWED_INTERFACES
The name of the allowed interfaces property which specifies the allowed
interfaces for host candidate allocations.
|
static String |
ALWAYS_SIGN
The name of the property that allows us to tell the stack to always
sign STUN messages with a FINGERPRINT attribute.
|
static String |
BIND_RETRIES
The name of the property containing the number of binds that we should
should execute in case a port is already bound to (each retry would be on
a new random port).
|
static int |
BIND_RETRIES_DEFAULT_VALUE
The default number of binds that we would try
implementation should execute in case a port is already bound to (each
retry would be on a different port).
|
static String |
BIND_WILDCARD
The name of the property that tells if we should bind to the
wildcard address instead of the (usually more specific) harvest candidate
addresses.
|
static String |
BLOCKED_ADDRESSES
The name of the property which specifies a ";"-separated list of IP
addresses that are not allowed to be used for host candidate allocations.
|
static String |
BLOCKED_INTERFACES
The name of the allowed interfaces property which specifies the blocked
interfaces for host candidate allocations.
|
static String |
CONSENT_FRESHNESS_INTERVAL
How often a STUN Binding request used for consent freshness check will be
sent(value in milliseconds).
|
static String |
CONSENT_FRESHNESS_MAX_RETRANSMISSIONS
The maximum number of retransmissions of a STUN Binding request without
a valid STUN Binding response after which consent freshness is to be
considered unconfirmed according to "STUN Usage for Consent
Freshness".
|
static String |
CONSENT_FRESHNESS_MAX_WAIT_INTERVAL
The number of milliseconds without a valid STUN Binding response after
which a STUN Binding request is to be retransmitted according to
"STUN Usage for Consent Freshness".
|
static String |
CONSENT_FRESHNESS_ORIGINAL_WAIT_INTERVAL
The number of milliseconds without a valid STUN Binding response after
which a STUN Binding request is to be retransmitted according to
"STUN Usage for Consent Freshness".
|
static String |
DISABLE_IPv6
The name of the property used to disabled IPv6 support.
|
static String |
DISABLE_LINK_LOCAL_ADDRESSES
The name of the property which, if set to true, specifies that IPv6
link local addresses should not be used for candidate allocations.
|
static String |
FIRST_CTRAN_RETRANS_AFTER
The number of milliseconds a client transaction should wait before
retransmitting, after it has sent a request for the first time.
|
static String |
HARVESTING_TIMEOUT
Timeout, in seconds, of how long to wait for an individual harvest before timing out
|
static String |
KEEP_CRANS_AFTER_A_RESPONSE
Indicates whether a client transaction should be kept after a response
is received rather than destroying it which is the default.
|
private static Logger |
logger
Our class logger.
|
static String |
MAX_CHECK_LIST_SIZE
The name of the System property that allows us to set a custom maximum
for check list sizes.
|
static String |
MAX_CTRAN_RETRANS_TIMER
The maximum number of milliseconds that an exponential client
retransmission timer can reach.
|
static String |
MAX_CTRAN_RETRANSMISSIONS
The maximum number of retransmissions a client transaction should send.
|
static String |
NO_KEEP_ALIVES
The name of the property that can be used to disable STUN keep alives.
|
static String |
NOMINATION_TIMER
THIS PROPERTY IS CURRENTLY UNUSED.
|
static String |
PROPAGATE_RECEIVED_RETRANSMISSIONS
The name of the property that tells the stack whether or not it should
let the application see retransmissions of incoming requests.
|
static String |
REQUIRE_MESSAGE_INTEGRITY
Tells the stack whether to reject all incoming requests that do not
carry a MESSAGE-INTEGRITY header.
|
static String |
SOFTWARE
The value of the SOFTWARE attribute that ice4j should include in all
outgoing messages.
|
static String |
TERMINATION_DELAY
The name of the property that can be used to specify the number of
milliseconds that we must wait after ICE processing enters a COMPLTED
state and before we free candidates and move into the TERMINATED state.
|
static String |
USE_COMPONENT_SOCKET
The name of the property which specifies whether the per-component
merging socket should be enabled by default (the default value can be
overridden with
Agent.createComponent(IceMediaStream, Transport,
int, int, int, KeepAliveStrategy, boolean) . |
static String |
USE_DYNAMIC_HOST_HARVESTER
The name of the property which specifies whether the dynamic port UDP
host harvester should be used by Agent instances.
|
Constructor and Description |
---|
StackProperties() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(String propertyName,
boolean defaultValue)
Gets the value of a specific property as a boolean.
|
static int |
getInt(String propertyName,
int defaultValue)
Returns the value of a specific property as a signed decimal integer.
|
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.
|
static 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.
|
private static final Logger logger
public static final String BIND_RETRIES
public static final int BIND_RETRIES_DEFAULT_VALUE
public static final String BIND_WILDCARD
public static final String CONSENT_FRESHNESS_INTERVAL
public static final String CONSENT_FRESHNESS_MAX_RETRANSMISSIONS
public static final String CONSENT_FRESHNESS_MAX_WAIT_INTERVAL
CONSENT_FRESHNESS_ORIGINAL_WAIT_INTERVAL
defines the initial
interval for the first request sent. Value in milliseconds.public static final String CONSENT_FRESHNESS_ORIGINAL_WAIT_INTERVAL
CONSENT_FRESHNESS_MAX_WAIT_INTERVAL
sets
the upper limit. Value in milliseconds.public static final String FIRST_CTRAN_RETRANS_AFTER
public static final String MAX_CTRAN_RETRANS_TIMER
public static final String KEEP_CRANS_AFTER_A_RESPONSE
public static final String MAX_CTRAN_RETRANSMISSIONS
public static final String MAX_CHECK_LIST_SIZE
public static final String SOFTWARE
public static final String PROPAGATE_RECEIVED_RETRANSMISSIONS
public static final String ALLOW_LINK_TO_GLOBAL_REACHABILITY
public static final String ALWAYS_SIGN
public static final String REQUIRE_MESSAGE_INTEGRITY
public static final String TERMINATION_DELAY
public static final String NO_KEEP_ALIVES
public static final String NOMINATION_TIMER
public static final String DISABLE_IPv6
public static final String ALLOWED_INTERFACES
public static final String BLOCKED_INTERFACES
public static final String ALLOWED_ADDRESSES
TcpHarvester
.public static final String DISABLE_LINK_LOCAL_ADDRESSES
public static final String BLOCKED_ADDRESSES
TcpHarvester
.public static final String USE_DYNAMIC_HOST_HARVESTER
public static final String HARVESTING_TIMEOUT
public static final String USE_COMPONENT_SOCKET
Agent.createComponent(IceMediaStream, Transport,
int, int, int, KeepAliveStrategy, boolean)
.
If enabled, the user of the library must use the socket instance provided
by Component.getSocket()
. Otherwise, the socket instance from the
desired CandidatePair
must be used.public static String getString(String propertyName)
propertyName
- the name of the property that is being queried.public static String[] getStringArray(String propertyName, String regex)
propertyName
- the name of the property that is being queried.regex
- the delimiting regular expressionpublic static int getInt(String propertyName, int defaultValue)
Integer.parseInt(String)
. If parsing the value as a
signed decimal integer fails or there is no value associated with the
specified property name, defaultValue is returned.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.public static boolean getBoolean(String propertyName, boolean defaultValue)
Boolean.parseBoolean(String)
. Otherwise,
defaultValue is returned.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 valueCopyright © 2018. All rights reserved.