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
public static class Bytestream.StreamHost extends java.lang.Object
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.
-
-
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.InternetAddress
getAddress()
Returns the internet address of the stream host.java.lang.String
getElementName()
org.jxmpp.jid.Jid
getJID()
Returns the JID of the stream host.int
getPort()
Returns the port on which the potential stream host would accept the connection.java.lang.String
toString()
org.jivesoftware.smack.util.XmlStringBuilder
toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
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:
toString
in classjava.lang.Object
-
-