NetworkAddress interface provides information of IP addresses available in which execution environment on a Network Interface Information Service bundle is running. IP address information service is set the following information as service property.
NETWORKADAPTER_TYPE : Network Interface TypeIPADDRESS_VERSION : IP Address VersionIPADDRESS_SCOPE : IP Address ScopeIPADDRESS : IP AddressSUBNETMASK_LENGTH : Subnet Mask Length(IPv4) or Prefix
Length(IPv6)NETWORKADAPTER_PID : Service PID of the NetworkAdapter service
to which this service belongsNetworkAddress service is registered with the service registry for each available IP address. When associated IP addresses are deleted, or the network interface to which the IP address is bound becomes unavailable, the NetworkAddress service is unregistered. When the associated IP address changes, NetworkAddress service is updated. The user bundle can detect the change of IP address by monitoring the registration or unregistering, updating of NetworkAddress service. Because IP addresses are bound to the network interface, if any, Service PID of the associated NetworkAdapter service and its network interface type are set to service property. NetworkAdapter service MUST be registered after the all associated NetworkAddress services are registered. On the other hand, when unregistering services, after associated NetworkAdapter service is unregistered, NetworkAddress of all related services are unregistered.
| Modifier and Type | Field and Description |
|---|---|
| public static final Integer | EMPTY_INTEGER
The value integer of service property, when information is not available. |
| public static final String | IPADDRESS
The key string of "ipAddress" service property. |
| public static final String | IPADDRESS_SCOPE
The key string of "ipAddress.scope" service property. |
| public static final String | IPADDRESS_SCOPE_GLOBAL
The string of IP address scope which means global address. |
| public static final String | IPADDRESS_SCOPE_HOST
The string of IP address scope which means "This host on this network". |
| public static final String | IPADDRESS_SCOPE_LINKED_SCOPED_UNICAST
The string of IP address scope which means "Linked-Scoped Unicast". |
| public static final String | IPADDRESS_SCOPE_LINKLOCAL
The string of IP address scope which means "Link Local". |
| public static final String | IPADDRESS_SCOPE_LOOPBACK
The string of IP address scope which means "Loopback". |
| public static final String | IPADDRESS_SCOPE_PRIVATE_USE
The string of IP address scope which means "Private-Use Networks". |
| public static final String | IPADDRESS_SCOPE_SHARED
The string of IP address scope which means "Shared Address Space". |
| public static final String | IPADDRESS_SCOPE_UNIQUE_LOCAL
The string of IP address scope which means "Unique-Local". |
| public static final String | IPADDRESS_SCOPE_UNSPECIFIED
The string of IP address scope which means "Unspecified Address". |
| public static final String | IPADDRESS_VERSION
The key string of "ipAddress.version" service property. |
| public static final String | IPADDRESS_VERSION_4
The string of IP address version which means IP address version 4. |
| public static final String | IPADDRESS_VERSION_6
The string of IP address version which means IP address version 6. |
| public static final String | NETWORKADAPTER_PID
The key string of "networkAdapter.pid" service property. |
| public static final String | NETWORKADAPTER_TYPE
The key string of "networkAdapter.type" service property. |
| public static final String | SUBNETMASK_LENGTH
The key string of "subnetmask.length" service property. |
| Modifier and Type | Method and Description |
|---|---|
| public InetAddress | Returns: InetAddress, or null if "ipaddress" service property value is empty.Returns the InetAddress object of this IP address. |
| public String | Returns: IP Address string, or null if "ipaddress" service property value is empty.Returns the IP address of "ipaddress" service property value. |
| public String | Returns: IP Address Scope, or null if "ipaddress.scope" service property value is empty.Returns the IP address scope of "ipaddress.scope" service property value. |
| public String | Returns: IP Address Version, or null if "ipaddress.version" service property value is empty.Returns the IP address version of "ipaddress.version" service property value. |
| public String | Returns: Service ID of the interface information service to which it belongs, or null if "networkadapter.pid" service property value is empty.Returns the "networkadapter.pid" service property value. |
| public String | Returns: Network Interface Type, or null if "networkAdapter.type" service property value is empty.Returns the network interface type of "networkAdapter.type" service property value. |
| public int | Returns: Subnet Mask Length(IPv4) or Prefix Length(IPv6), or -1 if "subnetmask.length" service property value is empty.Returns the "subnetmask.length" service property value. |
| EMPTY_INTEGER | back to summary |
|---|---|
| public static final Integer EMPTY_INTEGER The value integer of service property, when information is not available. | |
| IPADDRESS | back to summary |
|---|---|
| public static final String IPADDRESS The key string of "ipAddress" service property. IP Address is specified. | |
| IPADDRESS_SCOPE | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE The key string of "ipAddress.scope" service property. IP Address scope is specified. | |
| IPADDRESS_SCOPE_GLOBAL | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_GLOBAL The string of IP address scope which means global address. The global address is defined as the address other than the address defined in the RFC6890. | |
| IPADDRESS_SCOPE_HOST | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_HOST The string of IP address scope which means "This host on this network". See RFC6890 for the definition of "This host on this network". | |
| IPADDRESS_SCOPE_LINKED_SCOPED_UNICAST | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_LINKED_SCOPED_UNICAST The string of IP address scope which means "Linked-Scoped Unicast". See RFC6890 for the definition of "Linked-Scoped Unicast". | |
| IPADDRESS_SCOPE_LINKLOCAL | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_LINKLOCAL The string of IP address scope which means "Link Local". See RFC6890 for the definition of "Link Local". | |
| IPADDRESS_SCOPE_LOOPBACK | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_LOOPBACK The string of IP address scope which means "Loopback". See RFC6890 for the definition of "Loopback". | |
| IPADDRESS_SCOPE_PRIVATE_USE | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_PRIVATE_USE The string of IP address scope which means "Private-Use Networks". See RFC6890 for the definition of "Private-Use Networks". | |
| IPADDRESS_SCOPE_SHARED | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_SHARED The string of IP address scope which means "Shared Address Space". See RFC6890 for the definition of "Shared Address Space". | |
| IPADDRESS_SCOPE_UNIQUE_LOCAL | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_UNIQUE_LOCAL The string of IP address scope which means "Unique-Local". See RFC6890 for the definition of "Unique-Local". | |
| IPADDRESS_SCOPE_UNSPECIFIED | back to summary |
|---|---|
| public static final String IPADDRESS_SCOPE_UNSPECIFIED The string of IP address scope which means "Unspecified Address". See RFC6890 for the definition of "Unspecified Address". | |
| IPADDRESS_VERSION | back to summary |
|---|---|
| public static final String IPADDRESS_VERSION The key string of "ipAddress.version" service property. IP Address version is specified. | |
| IPADDRESS_VERSION_4 | back to summary |
|---|---|
| public static final String IPADDRESS_VERSION_4 The string of IP address version which means IP address version 4. | |
| IPADDRESS_VERSION_6 | back to summary |
|---|---|
| public static final String IPADDRESS_VERSION_6 The string of IP address version which means IP address version 6. | |
| NETWORKADAPTER_PID | back to summary |
|---|---|
| public static final String NETWORKADAPTER_PID The key string of "networkAdapter.pid" service property. Service PID of the interface information service to which it belongs is specified. | |
| NETWORKADAPTER_TYPE | back to summary |
|---|---|
| public static final String NETWORKADAPTER_TYPE The key string of "networkAdapter.type" service property. Network Interface Type is specified. | |
| SUBNETMASK_LENGTH | back to summary |
|---|---|
| public static final String SUBNETMASK_LENGTH The key string of "subnetmask.length" service property.
Subnet Mask Length(IPv4) or Prefix Length(IPv6) is specified.
| |
| getInetAddress | back to summary |
|---|---|
| public InetAddress getInetAddress() Returns the InetAddress object of this IP address. Returned object is created from "ipaddress" service property value.
| |
| getIpAddress | back to summary |
|---|---|
| public String getIpAddress() Returns the IP address of "ipaddress" service property value.
| |
| getIpAddressScope | back to summary |
|---|---|
| public String getIpAddressScope() Returns the IP address scope of "ipaddress.scope" service property value.
| |
| getIpAddressVersion | back to summary |
|---|---|
| public String getIpAddressVersion() Returns the IP address version of "ipaddress.version" service property value.
| |
| getNetworkAdapterPid | back to summary |
|---|---|
| public String getNetworkAdapterPid() Returns the "networkadapter.pid" service property value.
| |
| getNetworkAdapterType | back to summary |
|---|---|
| public String getNetworkAdapterType() Returns the network interface type of "networkAdapter.type" service property value.
| |
| getSubnetMaskLength | back to summary |
|---|---|
| public int getSubnetMaskLength() Returns the "subnetmask.length" service property value.
| |