An ICE server. More...
Public Member Functions | |
String | getHost () |
Gets the host. More... | |
boolean | getIsSecure () |
Gets a value indicating whether this represents a secure STUN or TURN server. More... | |
boolean | getIsStun () |
Gets a value indicating whether this represents a STUN server. More... | |
boolean | getIsTcp () |
Gets a value indicating whether this represents a TCP server. More... | |
boolean | getIsTurn () |
Gets a value indicating whether this represents a TURN server. More... | |
boolean | getIsUdp () |
Gets a value indicating whether this represents a UDP server. More... | |
String | getPassword () |
Gets the password. More... | |
int | getPort () |
Gets the port. More... | |
String | getUrl () |
Gets the URL. More... | |
String | getUsername () |
Gets the username. More... | |
IceServer (String url) | |
Initializes a new instance of the fm.liveswitch.IceServer class. More... | |
IceServer (String url, String username, String password) | |
Initializes a new instance of the fm.liveswitch.IceServer class. More... | |
String | toJson () |
Serializes this instance to JSON. More... | |
Static Public Member Functions | |
static fm.liveswitch.IceServer | fromJson (String iceServerJson) |
Deserializes an instance from JSON. More... | |
static fm.liveswitch.IceServer[] | fromJsonArray (String iceServersJson) |
Deserializes an array of instances from JSON. More... | |
static int | getDefaultPort () |
Gets the default non-secure port (in use for STUN and TURN). More... | |
static int | getDefaultStunPort () |
Gets the default STUN port. More... | |
static int | getDefaultStunsPort () |
Gets the default STUNS port. More... | |
static int | getDefaultTurnPort () |
Gets the default TURN port. More... | |
static int | getDefaultTurnsPort () |
Gets the default TURNS port. More... | |
static String | toJson (final fm.liveswitch.IceServer iceServer) |
Serializes an instance to JSON. More... | |
static String | toJsonArray (fm.liveswitch.IceServer[] iceServers) |
Serializes an array of instances to JSON. More... | |
An ICE server.
fm.liveswitch.IceServer.IceServer | ( | String | url | ) |
Initializes a new instance of the fm.liveswitch.IceServer class.
url | The URL. |
fm.liveswitch.IceServer.IceServer | ( | String | url, |
String | username, | ||
String | password | ||
) |
Initializes a new instance of the fm.liveswitch.IceServer class.
url | The URL. |
username | The username. |
password | The password. |
|
static |
Deserializes an instance from JSON.
iceServerJson | The JSON to deserialize. |
|
static |
Deserializes an array of instances from JSON.
iceServersJson | The JSON to deserialize. |
|
static |
Gets the default non-secure port (in use for STUN and TURN).
|
static |
Gets the default STUN port.
|
static |
Gets the default STUNS port.
|
static |
Gets the default TURN port.
|
static |
Gets the default TURNS port.
String fm.liveswitch.IceServer.getHost | ( | ) |
Gets the host.
boolean fm.liveswitch.IceServer.getIsSecure | ( | ) |
Gets a value indicating whether this represents a secure STUN or TURN server.
boolean fm.liveswitch.IceServer.getIsStun | ( | ) |
Gets a value indicating whether this represents a STUN server.
boolean fm.liveswitch.IceServer.getIsTcp | ( | ) |
Gets a value indicating whether this represents a TCP server.
boolean fm.liveswitch.IceServer.getIsTurn | ( | ) |
Gets a value indicating whether this represents a TURN server.
boolean fm.liveswitch.IceServer.getIsUdp | ( | ) |
Gets a value indicating whether this represents a UDP server.
String fm.liveswitch.IceServer.getPassword | ( | ) |
Gets the password.
int fm.liveswitch.IceServer.getPort | ( | ) |
Gets the port.
String fm.liveswitch.IceServer.getUrl | ( | ) |
Gets the URL.
String fm.liveswitch.IceServer.getUsername | ( | ) |
Gets the username.
String fm.liveswitch.IceServer.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
iceServer | The ICE server. |
|
static |
Serializes an array of instances to JSON.
iceServers | The ICE servers. |