Class StreamHost
- java.lang.Object
-
- rocks.xmpp.extensions.bytestreams.s5b.model.StreamHost
-
- All Implemented Interfaces:
Addressable,Socks5StreamHost
public final class StreamHost extends Object implements Socks5StreamHost
The<streamhost/>element.
-
-
Constructor Summary
Constructors Constructor Description StreamHost(Jid jid, String host, int port)Creates a<streamhost/>element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHostname()Gets the IP address or DNS domain name of the StreamHost for SOCKS5 communication over TCP.JidgetJid()Gets the JabberID of the StreamHost for communication over XMPP.intgetPort()Get the port on which to connect for SOCKS5 communication over TCP.StringtoString()
-
-
-
Method Detail
-
getHostname
public final String getHostname()
Gets the IP address or DNS domain name of the StreamHost for SOCKS5 communication over TCP.- Specified by:
getHostnamein interfaceSocks5StreamHost- Returns:
- The host.
-
getJid
public final Jid getJid()
Gets the JabberID of the StreamHost for communication over XMPP.- Specified by:
getJidin interfaceAddressable- Returns:
- The JID.
-
getPort
public final int getPort()
Get the port on which to connect for SOCKS5 communication over TCP.- Specified by:
getPortin interfaceSocks5StreamHost- Returns:
- The port.
-
-