public static class Bytestream.StreamHost extends Object implements NamedElement
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENTNAME |
Constructor and Description |
---|
StreamHost(org.jxmpp.jid.Jid jid,
String address) |
StreamHost(org.jxmpp.jid.Jid JID,
String address,
int port)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Returns the internet address of the stream host.
|
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(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static String ELEMENTNAME
public StreamHost(org.jxmpp.jid.Jid jid, String address)
public StreamHost(org.jxmpp.jid.Jid JID, 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 String getAddress()
public int getPort()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element