| Modifier and Type | Class and Description |
|---|---|
static class |
STUN.Provider
IQProvider for RTP Bridge packets.
|
static class |
STUN.StunServerAddress
Provides easy abstract to store STUN Server Addresses and Ports
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DOMAIN
Element name of the packet extension.
|
static String |
ELEMENT_NAME
Element name of the packet extension.
|
static String |
NAMESPACE
Namespace of the packet extension.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
STUN()
Creates a STUN IQ
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChildElementXML()
Get the Child Element XML of the Packet
|
String |
getPublicIp()
Get Public Ip returned from the XMPP server
|
List<STUN.StunServerAddress> |
getServers()
Get a list of STUN Servers recommended by the Server
|
static STUN |
getSTUNServer(XMPPConnection connection)
Get a new STUN Server Address and port from the server.
|
static boolean |
serviceAvailable(XMPPConnection connection)
Check if the server support STUN Service.
|
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toStringpublic static final String DOMAIN
public static final String ELEMENT_NAME
public static final String NAMESPACE
public STUN()
public List<STUN.StunServerAddress> getServers()
public String getPublicIp()
public String getChildElementXML()
getChildElementXML in class IQpublic static STUN getSTUNServer(XMPPConnection connection) throws SmackException.NotConnectedException
connection - SmackException.NotConnectedExceptionpublic static boolean serviceAvailable(XMPPConnection connection) throws XMPPException, SmackException
connection - the connectionSmackExceptionXMPPException