public static class Bytestream.StreamHost
extends java.lang.Object
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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()
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
public java.lang.String toString()
toString
in class java.lang.Object