org.teleal.cling.model
Class Locator
java.lang.Object
org.teleal.cling.model.Locator
public class Locator
- extends Object
The URL and MAC address a device (descriptor) is reachable at.
Used when sending notification messages about local devices and services to
other UPnP participants on the network. We send them the URL our descriptors
are reachable at, and we also let them know our MAC hardware address so they
can wake us up from sleep with Wake-On-LAN if necessary.
- Author:
- Christian Bauer
address
protected InetAddress address
port
protected int port
path
protected URI path
hardwareAddress
protected byte[] hardwareAddress
Locator
public Locator(InetAddress address,
int port,
URI path)
Locator
public Locator(InetAddress address,
int port,
URI path,
byte[] hardwareAddress)
getAddress
public InetAddress getAddress()
getPort
public int getPort()
getPath
public URI getPath()
getHardwareAddress
public byte[] getHardwareAddress()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
getURL
public URL getURL()
- Returns:
- An HTTP URL with the address, port, and path of this locator.
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.