Class Bytestream.StreamHost
- java.lang.Object
-
- org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- Bytestream
public static class Bytestream.StreamHost extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENTNAME
-
Constructor Summary
Constructors Constructor Description StreamHost(Jid jid, String address)
StreamHost(Jid jid, String address, int port)
Default constructor.StreamHost(Jid jid, InetAddress address, int port)
StreamHost(Jid jid, InternetAddress address, int port)
Stream Host constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InternetAddress
getAddress()
Returns the internet address of the stream host.String
getElementName()
Returns the root element name.Jid
getJID()
Returns the JID of the stream host.int
getPort()
Returns the port on which the potential stream host would accept the connection.String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENTNAME
public static String ELEMENTNAME
-
-
Constructor Detail
-
StreamHost
public StreamHost(Jid jid, String address)
-
StreamHost
public StreamHost(Jid jid, 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(Jid jid, InetAddress address, int port)
-
StreamHost
public StreamHost(Jid jid, 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 Jid getJID()
Returns the JID of the stream host.- Returns:
- Returns the JID of the stream host.
-
getAddress
public 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 String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
-