Class Bytestream.StreamHost
java.lang.Object
org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost
- All Implemented Interfaces:
Element
,ExtensionElement
,NamedElement
,XmlElement
,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
-
Constructor Summary
ConstructorDescriptionStreamHost
(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
Modifier and TypeMethodDescriptionReturns the internet address of the stream host.Returns the root element name.getJID()
Returns the JID of the stream host.final String
Returns the root element XML namespace.int
getPort()
Returns the port on which the potential stream host would accept the connection.toString()
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.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
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
Returns the JID of the stream host.- Returns:
- Returns the JID of the stream host.
-
getAddress
Returns the internet address of the stream host.- Returns:
- Returns the internet address of the stream host.
-
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
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
toXML
-
toString
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-