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