com.eurotech.framework.linux.net
Class ConnectionInfoImpl

java.lang.Object
  extended by com.eurotech.framework.linux.net.ConnectionInfoImpl
All Implemented Interfaces:
ConnectionInfo

public class ConnectionInfoImpl
extends Object
implements ConnectionInfo


Constructor Summary
ConnectionInfoImpl(String ifaceName)
          Creates a ConnectionInfo instance with the previously persisted connection properties if they existed
 
Method Summary
 List<IP4Address> getDnsServers()
          Gets the DNS addresses associated with this interface
 IP4Address getGateway()
          Gets the gateway address associated with this interface
 String getIfaceName()
          Gets the interface name associated with this connection information
 IP4Address getIpAddress()
          Reports IP address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInfoImpl

public ConnectionInfoImpl(String ifaceName)
                   throws EsfException
Creates a ConnectionInfo instance with the previously persisted connection properties if they existed

Parameters:
ifaceName - The interface name tied to the connection information
Throws:
EsfException
Method Detail

getIpAddress

public IP4Address getIpAddress()
Description copied from interface: ConnectionInfo
Reports IP address

Specified by:
getIpAddress in interface ConnectionInfo
Returns:
IP address as IP4Address

getGateway

public IP4Address getGateway()
Gets the gateway address associated with this interface

Specified by:
getGateway in interface ConnectionInfo
Returns:
A IP4Address representing the gateway if it is not null

getDnsServers

public List<IP4Address> getDnsServers()
Gets the DNS addresses associated with this interface

Specified by:
getDnsServers in interface ConnectionInfo
Returns:
A List of IP4Address objects representing the DNS of this interface. If there are none it returns an empty list.

getIfaceName

public String getIfaceName()
Gets the interface name associated with this connection information

Specified by:
getIfaceName in interface ConnectionInfo
Returns:
The interface name associated with this connection information


Copyright © 2013. All Rights Reserved.