public static class Bytestream.StreamHost
extends java.lang.Object
implements org.jivesoftware.smack.packet.NamedElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENTNAME |
Constructor and Description |
---|
StreamHost(org.jxmpp.jid.Jid jid,
java.lang.String address) |
StreamHost(org.jxmpp.jid.Jid JID,
java.lang.String address,
int port)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the internet address of the stream host.
|
java.lang.String |
getElementName() |
org.jxmpp.jid.Jid |
getJID()
Returns the JID of the stream host.
|
int |
getPort()
Returns the port on which the potential stream host would accept the connection.
|
org.jivesoftware.smack.util.XmlStringBuilder |
toXML() |
public StreamHost(org.jxmpp.jid.Jid jid, java.lang.String address)
public StreamHost(org.jxmpp.jid.Jid JID, java.lang.String address, int port)
JID
- The JID of the stream host.address
- The internet address of the stream host.port
- port of the stream host.public org.jxmpp.jid.Jid getJID()
public java.lang.String getAddress()
public int getPort()
public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.NamedElement
public org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML
in interface org.jivesoftware.smack.packet.Element