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.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
- Enclosing class:
- Bytestream
public static class Bytestream.StreamHost extends java.lang.ObjectStanza 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 Modifier and Type Field Description static java.lang.StringELEMENTNAME
-
Constructor Summary
Constructors Constructor Description StreamHost(org.jxmpp.jid.Jid jid, java.lang.String address)StreamHost(org.jxmpp.jid.Jid jid, java.lang.String address, int port)Default constructor.StreamHost(org.jxmpp.jid.Jid jid, java.net.InetAddress address, int port)StreamHost(org.jxmpp.jid.Jid jid, org.jivesoftware.smack.util.InternetAddress address, int port)Stream Host constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jivesoftware.smack.util.InternetAddressgetAddress()Returns the internet address of the stream host.java.lang.StringgetElementName()org.jxmpp.jid.JidgetJID()Returns the JID of the stream host.intgetPort()Returns the port on which the potential stream host would accept the connection.java.lang.StringtoString()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Constructor Detail
-
StreamHost
public StreamHost(org.jxmpp.jid.Jid jid, java.lang.String address)
-
StreamHost
public StreamHost(org.jxmpp.jid.Jid jid, java.lang.String address, int port)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
public StreamHost(org.jxmpp.jid.Jid jid, java.net.InetAddress address, int port)
-
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 Detail
-
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
public java.lang.String getElementName()
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-