public class RTPBridge extends IQ
| Modifier and Type | Class and Description |
|---|---|
static class |
RTPBridge.Provider
IQProvider for RTP Bridge packets.
|
IQ.IQChildElementXmlStringBuilder, IQ.Type| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_NAME
Element name of the stanza(/packet) extension.
|
static java.lang.String |
NAME
Element name of the stanza(/packet) extension.
|
static java.lang.String |
NAMESPACE
Namespace of the stanza(/packet) extension.
|
IQ_ELEMENT, QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
RTPBridge()
Creates a RTPBridge Stanza(/Packet) without Session ID.
|
RTPBridge(org.jivesoftware.smackx.jingleold.nat.RTPBridge.BridgeAction action)
Creates a RTPBridge Instance with defined Session ID.
|
RTPBridge(java.lang.String sid)
Creates a RTPBridge Instance with defined Session ID.
|
RTPBridge(java.lang.String sid,
org.jivesoftware.smackx.jingleold.nat.RTPBridge.BridgeAction bridgeAction)
Creates a RTPBridge Instance with defined Session ID.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttributes()
Get the attributes string.
|
java.lang.String |
getHostA()
Get the Host A IP Address.
|
java.lang.String |
getHostB()
Get the Host B IP Address.
|
java.lang.String |
getIp()
Get the RTP Bridge IP.
|
protected IQ.IQChildElementXmlStringBuilder |
getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder str)
Get the Child Element XML of the Packet
|
java.lang.String |
getName()
Get the name of the Candidate.
|
java.lang.String |
getPass()
Get the RTP Agent Pass.
|
int |
getPortA()
Get Side A receive port.
|
int |
getPortB()
Get Side B receive port.
|
static java.lang.String |
getPublicIP(XMPPConnection xmppConnection)
Get Public Address from the Server.
|
static RTPBridge |
getRTPBridge(XMPPConnection connection,
java.lang.String sessionID)
Get a new RTPBridge Candidate from the server.
|
java.lang.String |
getSid()
Get the Session ID of the Stanza(/Packet) (usually same as Jingle Session ID).
|
static RTPBridge |
relaySession(XMPPConnection connection,
java.lang.String sessionID,
java.lang.String pass,
TransportCandidate proxyCandidate,
TransportCandidate localCandidate)
Check if the server support RTPBridge Service.
|
static boolean |
serviceAvailable(XMPPConnection connection)
Check if the server support RTPBridge Service.
|
void |
setHostA(java.lang.String hostA)
Set the Host A IP Address.
|
void |
setHostB(java.lang.String hostB)
Set the Host B IP Address.
|
void |
setIp(java.lang.String ip)
Set the RTP Bridge IP.
|
void |
setName(java.lang.String name)
Set the name of the Candidate.
|
void |
setPass(java.lang.String pass)
Set the RTP Agent Pass.
|
void |
setPortA(int portA)
Set Side A receive port.
|
void |
setPortB(int portB)
Set Side B receive port.
|
void |
setSid(java.lang.String sid)
Set the Session ID of the Stanza(/Packet) (usually same as Jingle Session ID).
|
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initializeAsResultFor, initialzeAsResultFor, isRequestIQ, setType, toString, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTopublic static final java.lang.String NAME
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public RTPBridge(java.lang.String sid)
sid - public RTPBridge(org.jivesoftware.smackx.jingleold.nat.RTPBridge.BridgeAction action)
action - public RTPBridge(java.lang.String sid, org.jivesoftware.smackx.jingleold.nat.RTPBridge.BridgeAction bridgeAction)
sid - bridgeAction - public RTPBridge()
public java.lang.String getAttributes()
public java.lang.String getSid()
public void setSid(java.lang.String sid)
sid - public java.lang.String getHostA()
public void setHostA(java.lang.String hostA)
hostA - public java.lang.String getHostB()
public void setHostB(java.lang.String hostB)
hostB - public int getPortA()
public void setPortA(int portA)
portA - public int getPortB()
public void setPortB(int portB)
portB - public java.lang.String getIp()
public void setIp(java.lang.String ip)
ip - public java.lang.String getPass()
public void setPass(java.lang.String pass)
pass - public java.lang.String getName()
public void setName(java.lang.String name)
name - protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder str)
getIQChildElementBuilder in class IQstr - a pre-created builder which already has the child element and the 'xmlns' attribute set.public static RTPBridge getRTPBridge(XMPPConnection connection, java.lang.String sessionID) throws SmackException.NotConnectedException, java.lang.InterruptedException
connection - sessionID - SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic static boolean serviceAvailable(XMPPConnection connection) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
connection - XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic static RTPBridge relaySession(XMPPConnection connection, java.lang.String sessionID, java.lang.String pass, TransportCandidate proxyCandidate, TransportCandidate localCandidate) throws SmackException.NotConnectedException, java.lang.InterruptedException
connection - SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic static java.lang.String getPublicIP(XMPPConnection xmppConnection) throws SmackException.NotConnectedException, java.lang.InterruptedException
xmppConnection - SmackException.NotConnectedExceptionjava.lang.InterruptedException