public static class Bytestream.StreamHost extends java.lang.Object implements 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()
Returns the root element name.
|
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.
|
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
public static java.lang.String ELEMENTNAME
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()
NamedElementgetElementName in interface NamedElementpublic XmlStringBuilder toXML()
Element