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(Jid jid,
java.lang.String address) |
StreamHost(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.
|
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(Jid jid, java.lang.String address)
public StreamHost(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 Jid getJID()
public java.lang.String getAddress()
public int getPort()
public java.lang.String getElementName()
NamedElement
getElementName
in interface NamedElement
public XmlStringBuilder toXML()
Element