Package dev.galasa.ipnetwork
Interface IIpHost
- All Known Subinterfaces:
IIpHostSpi
- All Known Implementing Classes:
AbstractGenericIpHost
public interface IIpHost
Represents a IP Host or Stack.
Use the appropriate host manager annotation to obtain an object
-
Method Summary
Modifier and TypeMethodDescription@NotNull ICredentialsintGet the FTP port, defaults to 21@NotNull StringGet the default Hostname of the HostGet the IPV4 Hostname of the HostGet the IPV6 Hostname of the HostintGet the SSH port, defaults to 22intGet the Telnet port, defaults to 23booleanIs the FTP port secured by TLS, default falsebooleanIs the Telnet port secured by TLS, default falsebooleanShould the Telnet server's certificate be verified, default false
-
Method Details
-
getHostname
Get the default Hostname of the Host -
getIpv4Hostname
String getIpv4Hostname()Get the IPV4 Hostname of the Host -
getIpv6Hostname
String getIpv6Hostname()Get the IPV6 Hostname of the Host -
getTelnetPort
Get the Telnet port, defaults to 23- Returns:
- Telnet port
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
isTelnetPortTls
Is the Telnet port secured by TLS, default false- Returns:
- secured?
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
shouldVerifyTelnetServer
Should the Telnet server's certificate be verified, default false- Returns:
- verify?
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
getFtpPort
Get the FTP port, defaults to 21- Returns:
- FTP port
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
isFtpPortTls
Is the FTP port secured by TLS, default false- Returns:
- secured?
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
getSshPort
Get the SSH port, defaults to 22- Returns:
- SSH Port
- Throws:
IpNetworkManagerException- if there is a problem accessing the CPS
-
getDefaultCredentials
- Returns:
- Throws:
IpNetworkManagerException
-