|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
public static class Bytestream.StreamHost
Packet extension that represents a potential SOCKS5 proxy for the file transfer. Stream hosts are forwarded to the target of the file transfer who then chooses and connects to one.
Field Summary | |
---|---|
static java.lang.String |
ELEMENTNAME
|
static java.lang.String |
NAMESPACE
|
Constructor Summary | |
---|---|
Bytestream.StreamHost(java.lang.String JID,
java.lang.String address)
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String NAMESPACE
public static java.lang.String ELEMENTNAME
Constructor Detail |
---|
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.Method Detail |
---|
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
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |