public class DeviceData extends NodeData
This class extends NodeData to represent device definitions from UPnP device descriptions. It encapsulates metadata about devices including description files, locations, and advertisement settings.
Key features:
This class is used by UPnP devices to manage their description data and configuration, enabling proper device advertisement and service discovery functionality.
| Constructor and Description |
|---|
DeviceData()Default constructor |
| Modifier and Type | Method and Description |
|---|---|
Advertiser | getAdvertiser()getAdvertiser. |
ListenerList | getControlActionListenerList()getControlActionListenerList. |
File | getDescriptionFile()getDescriptionFile. |
String | getDescriptionURI()getDescriptionURI. |
InetAddress[] | getHTTPBindAddress()getHTTPBindAddress. |
int | getHTTPPort()getHTTPPort. |
HTTPServerList | getHTTPServerList()getHTTPServerList. |
int | getLeaseTime()getLeaseTime. |
String | getLocation()getLocation. |
String | getLocation(boolean preferIPv6)I2P for multiple location support. |
String | getMulticastIPv4Address()Returns the IPv4 multicast address. |
String | getMulticastIPv6Address()Returns the IPv6 multicast address. |
InetAddress[] | getSSDPBindAddress()Returns the SSDP bind addresses. |
SSDPPacket | getSSDPPacket()getSSDPPacket. |
SSDPPacket | getSSDPPacket(boolean preferIPv6)I2P for multiple location support. |
int | getSSDPPort()Returns the SSDP port used for binding. |
SSDPSearchSocketList | getSSDPSearchSocketList()getSSDPSearchSocketList. |
void | setAdvertiser(Advertiser adv)setAdvertiser. |
void | setDescriptionFile(File descriptionFile)setDescriptionFile. |
void | setDescriptionURI(String descriptionURI)setDescriptionURI. |
void | setHTTPBindAddress(InetAddress[] inets)setHTTPBindAddress. |
void | setHTTPPort(int port)setHTTPPort. |
void | setLeaseTime(int val)setLeaseTime. |
void | setLocation(String location)setLocation. |
void | setMulticastIPv4Address(String ip)Sets the IPv4 multicast address. |
void | setMulticastIPv6Address(String ip)Sets the IPv6 multicast address. |
void | setSSDPBindAddress(InetAddress[] inets)Sets the SSDP bind addresses. |
void | setSSDPPacket(SSDPPacket packet)setSSDPPacket. |
void | setSSDPPort(int port)Sets the SSDP port for binding. |
public Advertiser getAdvertiser()
public ListenerList getControlActionListenerList()
public File getDescriptionFile()
public String getDescriptionURI()
public InetAddress[] getHTTPBindAddress()
public int getHTTPPort()
public HTTPServerList getHTTPServerList()
public int getLeaseTime()
public String getLocation()
public String getLocation(boolean preferIPv6)
preferIPv6 - whether to prefer IPv6 addresspublic String getMulticastIPv4Address()
public String getMulticastIPv6Address()
public InetAddress[] getSSDPBindAddress()
InetAddress that will be binded for this service null
means that defulat behaviur will be usedpublic SSDPPacket getSSDPPacket()
public SSDPPacket getSSDPPacket(boolean preferIPv6)
preferIPv6 - whether to prefer IPv6 addresspublic int getSSDPPort()
public SSDPSearchSocketList getSSDPSearchSocketList()
public void setAdvertiser(Advertiser adv)
public void setDescriptionFile(File descriptionFile)
public void setDescriptionURI(String descriptionURI)
public void setHTTPBindAddress(InetAddress[] inets)
public void setHTTPPort(int port)
public void setLeaseTime(int val)
public void setLocation(String location)
public void setMulticastIPv4Address(String ip)
ip - The IPv4 address used as destination address for Multicast comunicationpublic void setMulticastIPv6Address(String ip)
ip - The IPv6 address used as destination address for Multicast comunicationpublic void setSSDPBindAddress(InetAddress[] inets)
inets - The InetAddress that will be binded for listing this service. Use
null for the default behaviur.org.cybergarage.upnp.ssdp,
org.cybergarage.upnp,
HostInterfacepublic void setSSDPPacket(SSDPPacket packet)
public void setSSDPPort(int port)
port - The port to use for binding the SSDP service. The port will be used as source
port for all SSDP messages