public class StunConfig
extends java.lang.Object
Constructor and Description |
---|
StunConfig(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowOnPrivateAddress()
Gets the configured usage of a STUN server on PRIVATE IP address
Configures whether to allow or not using STUN on PRIVATE address.
|
void |
allowOnPrivateAddress(boolean value)
Configures whether a STUN server on PRIVATE IP address may be used
Configures whether to allow or not using STUN on PRIVATE address.
|
boolean |
allowWithPrivateSipServer()
Gets the configured usage of STUN when used with SIP server on PRIVATE IP address
Configures whether to allow or not using STUN with SIP server on PRIVATE address.
|
void |
allowWithPrivateSipServer(boolean value)
Configures whether a STUN may be used with SIP server on PRIVATE IP address
Configures whether to allow or not using STUN with SIP server on PRIVATE address.
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
boolean |
isEqual(StunConfig comp)
Compares the current configuration with the given one
|
boolean |
stunEnabled()
Gets the use of STUN functionality as described in RFC 3489
|
void |
stunEnabled(boolean value)
Configures the use of STUN functionality as described in RFC 3489
|
int |
stunPort()
Gets the configured port of the STUN server
Specifies the port of the STUN server.
|
void |
stunPort(int value)
Configures the port of the STUN server
Specifies the port of the STUN server.
|
int |
stunRefresh()
Gets the configured refresh period of the STUN server
Specifies how often to refresh the STUN server.
|
void |
stunRefresh(int value)
Configures the refresh period of the STUN server
Specifies how often to refresh the STUN server.
|
java.lang.String |
stunServer()
Gets the configured address of the STUN server
Configures the address (hostname) of the STUN server.
|
void |
stunServer(java.lang.String value)
Configures the address of the STUN server
Configures the address (hostname) of the STUN server.
|
boolean |
useDnsSrvRequests()
Gets the configured use of DNS SRV requests in a STUN server
Configures the use of DNS SRV requests to find the given STUN server's address.
|
void |
useDnsSrvRequests(boolean value)
Configures the use of DNS SRV requests in a STUN server
Configures the use of DNS SRV requests to find the given STUN server's address.
|
public StunConfig(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public boolean stunEnabled()
public void stunEnabled(boolean value)
value
- public java.lang.String stunServer()
public void stunServer(java.lang.String value)
value
- Hostname of the serverpublic int stunPort()
public void stunPort(int value)
value
- The port of the serverpublic int stunRefresh()
keepAlive
public void stunRefresh(int value)
value
- The refresh period in milliseconds (30000 default)keepAlive
public boolean useDnsSrvRequests()
public void useDnsSrvRequests(boolean value)
value
- public boolean allowOnPrivateAddress()
public void allowOnPrivateAddress(boolean value)
value
- public boolean allowWithPrivateSipServer()
public void allowWithPrivateSipServer(boolean value)
value
- public boolean isEqual(StunConfig comp)
comp
- STUN configuration to be compared