public final class StreamHost extends java.lang.Object implements Socks5StreamHost
The <streamhost/> element.
| Constructor and Description |
|---|
StreamHost(Jid jid,
java.lang.String host,
int port)
Creates a
<streamhost/> element. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHostname()
Gets the IP address or DNS domain name of the StreamHost for SOCKS5 communication over TCP.
|
Jid |
getJid()
Gets the JabberID of the StreamHost for communication over XMPP.
|
int |
getPort()
Get the port on which to connect for SOCKS5 communication over TCP.
|
java.lang.String |
toString() |
public StreamHost(Jid jid, java.lang.String host, int port)
Creates a <streamhost/> element.
jid - The JID.host - The host address.port - The port.public final java.lang.String getHostname()
Gets the IP address or DNS domain name of the StreamHost for SOCKS5 communication over TCP.
getHostname in interface Socks5StreamHostpublic final Jid getJid()
Gets the JabberID of the StreamHost for communication over XMPP.
getJid in interface Socks5StreamHostpublic final int getPort()
Get the port on which to connect for SOCKS5 communication over TCP.
getPort in interface Socks5StreamHostpublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2019 XMPP.rocks. All rights reserved.