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 jabber ID 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 reppresentation 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 jabber ID 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
Copyright © 2003 Jive Software.