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.net.InetAddress address,
int port) |
StreamHost(org.jxmpp.jid.Jid jid,
org.jivesoftware.smack.util.InternetAddress address,
int port)
Stream Host constructor.
|
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 |
|---|---|
org.jivesoftware.smack.util.InternetAddress |
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.
|
java.lang.String |
toString() |
org.jivesoftware.smack.util.XmlStringBuilder |
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) |
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 StreamHost(org.jxmpp.jid.Jid jid,
java.net.InetAddress address,
int port)
public StreamHost(org.jxmpp.jid.Jid jid,
org.jivesoftware.smack.util.InternetAddress 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 org.jivesoftware.smack.util.InternetAddress getAddress()
public int getPort()
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.NamedElementpublic org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
toXML in interface org.jivesoftware.smack.packet.Elementpublic java.lang.String toString()
toString in class java.lang.Object