Class Bytestream.StreamHost
java.lang.Object
org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
Bytestream
Stanza 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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStreamHost(org.jxmpp.jid.Jid jid, String address) StreamHost(org.jxmpp.jid.Jid jid, String address, int port) Default constructor.StreamHost(org.jxmpp.jid.Jid jid, InetAddress address, int port) StreamHost(org.jxmpp.jid.Jid jid, org.jivesoftware.smack.util.InternetAddress address, int port) Stream Host constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.jivesoftware.smack.util.InternetAddressReturns the internet address of the stream host.org.jxmpp.jid.JidgetJID()Returns the JID of the stream host.final StringintgetPort()Returns the port on which the potential stream host would accept the connection.toString()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
- See Also:
-
QNAME
-
-
Constructor Details
-
StreamHost
-
StreamHost
Default constructor.- Parameters:
jid- The JID of the stream host.address- The internet address of the stream host.port- port of the stream host.
-
StreamHost
-
StreamHost
public StreamHost(org.jxmpp.jid.Jid jid, org.jivesoftware.smack.util.InternetAddress address, int port) Stream Host constructor.- Parameters:
jid- The JID of the stream host.address- The internet address of the stream host.port- port of the stream host.
-
-
Method Details
-
getJID
public org.jxmpp.jid.Jid getJID()Returns the JID of the stream host.- Returns:
- Returns the JID of the stream host.
-
getAddress
public org.jivesoftware.smack.util.InternetAddress getAddress()Returns the internet address of the stream host.- Returns:
- Returns the internet address of the stream host.
-
getPort
public int getPort()Returns the port on which the potential stream host would accept the connection.- Returns:
- Returns the port on which the potential stream host would accept the connection.
-
getElementName
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) -
toString
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-