com.eurotech.framework.net
Interface NetworkService

All Known Implementing Classes:
EmulatedNetworkServiceImpl, NetworkServiceImpl

public interface NetworkService

The NetworkService allows to browse and configure the network interfaces of the system.
NetworkService extends what is offered by the standard Java APIs by offering information like the NetworkInterface type - e.g. wired vs wireless vs modem - and additional information regarding the address of a NetworkInterface - e.g. its getway address, DNS, and so on.


Method Summary
 List<NetInterface<? extends NetInterfaceAddress>> getActiveNetworkInterfaces()
          Return the active NetworkIntefaces which have active connections for the system.
 List<String> getAllNetworkInterfaceNames()
          Gets the names of all the network interface attached to the system.
 List<WifiAccessPoint> getAllWifiAccessPoints()
          Returns the list of all available WifiAccessPoints as seen from the system.
 String getModemPppPort(ModemDevice modemDevice)
           
 String getModemUsbPort(String interfaceName)
           
 List<NetInterface<? extends NetInterfaceAddress>> getNetworkInterfaces()
          Gets the names of all the network interface attached to the system.
 NetworkState getState()
          Returns the overall state of the networking subsystem
 NetInterfaceState getState(String interfaceName)
          Returns the state of a specific network interface
 List<WifiAccessPoint> getWifiAccessPoints(String wifiInterfaceName)
          Returns the list of the WifiAccessPoints visible from the specified wifi network interface.
 

Method Detail

getState

NetworkState getState()
                      throws EsfException
Returns the overall state of the networking subsystem

Throws:
EsfException

getState

NetInterfaceState getState(String interfaceName)
                           throws EsfException
Returns the state of a specific network interface

Throws:
EsfException

getAllNetworkInterfaceNames

List<String> getAllNetworkInterfaceNames()
                                         throws EsfException
Gets the names of all the network interface attached to the system.

Returns:
the names of all interfaces regardless of 'up' status
Throws:
EsfException

getNetworkInterfaces

List<NetInterface<? extends NetInterfaceAddress>> getNetworkInterfaces()
                                                                       throws EsfException
Gets the names of all the network interface attached to the system. For each returned NetworkInterface, its currently active InterfaceAddresses are returned.

Returns:
all NetworkInterfaces
Throws:
EsfException

getAllWifiAccessPoints

List<WifiAccessPoint> getAllWifiAccessPoints()
                                             throws EsfException
Returns the list of all available WifiAccessPoints as seen from the system.

Returns:
all access points accessible from the system.
Throws:
EsfException

getWifiAccessPoints

List<WifiAccessPoint> getWifiAccessPoints(String wifiInterfaceName)
                                          throws EsfException
Returns the list of the WifiAccessPoints visible from the specified wifi network interface. If this wifiInterfaceName is in Master mode it will return a List with one WifiAccessPoint which is itself.

Parameters:
wifiInterfaceName - name of the interface used to scan for the available access points
Returns:
the list of the WifiAccessPoints visible from the specified wifi network interface.
Throws:
EsfException

getActiveNetworkInterfaces

List<NetInterface<? extends NetInterfaceAddress>> getActiveNetworkInterfaces()
                                                                             throws EsfException
Return the active NetworkIntefaces which have active connections for the system.

Returns:
Throws:
EsfException

getModemUsbPort

String getModemUsbPort(String interfaceName)

getModemPppPort

String getModemPppPort(ModemDevice modemDevice)
                       throws EsfException
Throws:
EsfException


Copyright © 2013. All Rights Reserved.