org.fourthline.cling.model
Class Location
java.lang.Object
org.fourthline.cling.model.Location
public class Location
- extends Object
The IP address/port, MAC address, and URI path of a (network) location.
Used when sending messages about local devices and services to
other UPnP participants on the network, such as where our device/service
descriptors can be found or what callback address to use for event message
delivery. 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
networkAddress
protected NetworkAddress networkAddress
path
protected URI path
Location
public Location(NetworkAddress networkAddress,
URI path)
getNetworkAddress
public NetworkAddress getNetworkAddress()
getPath
public URI getPath()
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 location.
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.