public class RemoteDeviceIdentity extends DeviceIdentity
This information always includes the URL of the device's descriptor, and the local network interface address we should use in the future, because it is guaranteed to be reachable by this remote device (e.g. when we build a local callback URL).
Optional is the remote hosts interface MAC hardware address. If we have it, we can use it to send Wake-On-LAN broadcasts if we think the remote host is not reachable and might be sleeping. (Useful for "stateless" reconnecting control points.)
Constructor and Description |
---|
RemoteDeviceIdentity(IncomingNotificationRequest notificationRequest) |
RemoteDeviceIdentity(IncomingSearchResponse searchResponse) |
RemoteDeviceIdentity(UDN udn,
Integer maxAgeSeconds,
URL descriptorURL,
byte[] interfaceMacAddress,
InetAddress discoveredOnLocalAddress) |
RemoteDeviceIdentity(UDN udn,
RemoteDeviceIdentity template) |
Modifier and Type | Method and Description |
---|---|
URL |
getDescriptorURL() |
InetAddress |
getDiscoveredOnLocalAddress() |
byte[] |
getInterfaceMacAddress() |
byte[] |
getWakeOnLANBytes() |
String |
toString() |
equals, getMaxAgeSeconds, getUdn, hashCode, validate
public RemoteDeviceIdentity(UDN udn, RemoteDeviceIdentity template)
public RemoteDeviceIdentity(UDN udn, Integer maxAgeSeconds, URL descriptorURL, byte[] interfaceMacAddress, InetAddress discoveredOnLocalAddress)
public RemoteDeviceIdentity(IncomingNotificationRequest notificationRequest)
public RemoteDeviceIdentity(IncomingSearchResponse searchResponse)
public URL getDescriptorURL()
public byte[] getInterfaceMacAddress()
public InetAddress getDiscoveredOnLocalAddress()
public byte[] getWakeOnLANBytes()
public String toString()
toString
in class DeviceIdentity
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.