|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.hn.NetworkInterface
public class NetworkInterface
This class represents a home network interface including MoCA, wired ethernet, and wireless ethernet. Reverse channel interfaces are not represented by objects of this class. For each wired ethernet, wireless ethernet, MoCA interface, or interface that is not a reverse channel interface the HNIMP SHALL create an instance of this class.
| Field Summary | |
|---|---|
static int |
MOCA
Network interface type for hard-wired and MoCA based. |
static int |
UNKNOWN
Unknown network type. |
static int |
WIRED_ETHERNET
Network interface type for hard-wired and ethernet based. |
static int |
WIRELESS_ETHERNET
Network interface type for wireless and ethernet based. |
| Constructor Summary | |
|---|---|
protected |
NetworkInterface()
Protected constructor. |
| Method Summary | |
|---|---|
String |
getDisplayName()
Gets a humanly readable name for this interface, e.g. |
InetAddress |
getInetAddress()
Gets the InetAddress of this interface. |
String |
getMacAddress()
Gets the MAC address of this interface. |
static NetworkInterface[] |
getNetworkInterfaces()
Gets an array of NetworkInterface instances that represent
all of the network interfaces supported by the device. |
int |
getType()
Gets the type of this network interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN
public static final int MOCA
public static final int WIRED_ETHERNET
public static final int WIRELESS_ETHERNET
| Constructor Detail |
|---|
protected NetworkInterface()
| Method Detail |
|---|
public static NetworkInterface[] getNetworkInterfaces()
NetworkInterface instances that represent
all of the network interfaces supported by the device.
public int getType()
public String getDisplayName()
public InetAddress getInetAddress()
InetAddress of this interface.
InetAddress of this interface.public String getMacAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||