public static class Bytestream.StreamHost extends Object implements PacketExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENTNAME |
static String |
NAMESPACE |
| Constructor and Description |
|---|
Bytestream.StreamHost(String JID,
String address)
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.
|
String |
getNamespace()
Returns the root element XML namespace.
|
int |
getPort()
Returns the port on which the potential stream host would accept the connection.
|
void |
setPort(int port)
Sets the port of the stream host.
|
String |
toXML()
Returns the XML representation of the PacketExtension.
|
public static String ELEMENTNAME
public Bytestream.StreamHost(String JID, String address)
JID - The JID of the stream host.address - The internet address of the stream host.public String getJID()
public String getAddress()
public void setPort(int port)
port - The port on which the potential stream host would accept the connection.public int getPort()
public String getNamespace()
PacketExtensiongetNamespace in interface PacketExtensionpublic String getElementName()
PacketExtensiongetElementName in interface PacketExtensionpublic String toXML()
PacketExtensiontoXML in interface PacketExtension