public static class Bytestream.StreamHost extends Object implements NamedElement
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENTNAME |
Constructor and Description |
---|
StreamHost(String jid,
String address) |
StreamHost(String 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.
|
String |
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 String ELEMENTNAME
public StreamHost(String jid, String address)
public StreamHost(String JID, String address, int port)
JID
- The JID of the stream host.address
- The internet address of the stream host.public String getJID()
public String getAddress()
public int getPort()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public XmlStringBuilder toXML()
Element