public static class Bytestream.StreamHost
extends java.lang.Object
implements org.jivesoftware.smack.packet.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() |
java.lang.String |
getJID()
Returns the JID of the stream host.
|
java.lang.String |
getNamespace() |
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() |
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()
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension