|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.packet.Bytestream.StreamHost
public static class Bytestream.StreamHost
Packet extension that represents a potential Socks5 proxy for the file transfer. Stream hosts are forwared to the target of the file transfer who then chooses and connects to one.
Field Summary | |
---|---|
static String |
ELEMENTNAME
|
static String |
NAMESPACE
|
Constructor Summary | |
---|---|
Bytestream.StreamHost(String JID,
String address)
Default constructor. |
Method Summary | |
---|---|
String |
getAddress()
Returns the internet address of the stream host. |
String |
getElementName()
Returns the root element name. |
String |
getJID()
Returns the jabber ID 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 reppresentation of the PacketExtension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String NAMESPACE
public static String ELEMENTNAME
Constructor Detail |
---|
public Bytestream.StreamHost(String JID, String address)
JID
- The jabber ID of the stream host.address
- The internet address of the stream host.Method Detail |
---|
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()
PacketExtension
getNamespace
in interface PacketExtension
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |