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 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.String
toString()
-
-
-
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:
getHostname
in interfaceSocks5StreamHost
- Returns:
- The host.
-
getJid
public final Jid getJid()
Gets the JabberID of the StreamHost for communication over XMPP.- Specified by:
getJid
in interfaceAddressable
- Returns:
- The JID.
-
getPort
public final int getPort()
Get the port on which to connect for SOCKS5 communication over TCP.- Specified by:
getPort
in interfaceSocks5StreamHost
- Returns:
- The port.
-
-