org.cybergarage.upnp.Device.getDeviceData()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.cybergarage.upnp.Device.getDeviceData()方法的一些代码示例,展示了Device.getDeviceData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.getDeviceData()方法的具体详情如下:
包路径:org.cybergarage.upnp.Device
类名称:Device
方法名:getDeviceData

Device.getDeviceData介绍

暂无

代码示例

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return SSDPIPv4MulticastAddress
 * @since 1.8
 */
public String getSSDPIPv4MulticastAddress() {
  return this.getDeviceData().getMulticastIPv4Address();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param port
 *            The port to use for binding the SSDP service
 */
public void setSSDPPort(int port) {
  this.getDeviceData().setSSDPPort(port);
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return The port to use for binding the SSDP service
 */
public int getSSDPPort() {
  return this.getDeviceData().getSSDPPort();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return inets The IP that will be used for binding the SSDP service. null
 *         means the default setted by the class UPnP
 */
public InetAddress[] getSSDPBindAddress() {
  return this.getDeviceData().getSSDPBindAddress();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return The IPv address used for Multicast comunication
 */
public String getMulticastIPv6Address() {
  return this.getDeviceData().getMulticastIPv6Address();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return SSDPIPv6MulticastAddress
 * @since 1.8
 */
public String getSSDPIPv6MulticastAddress() {
  return this.getDeviceData().getMulticastIPv6Address();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @return The IPv4 address used for Multicast comunication
 */
public String getMulticastIPv4Address() {
  return this.getDeviceData().getMulticastIPv4Address();
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param ip
 * @since 1.8
 */
public void getSSDPIPv4MulticastAddress(String ip) {
  this.getDeviceData().setMulticastIPv4Address(ip);
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param ip
 * @since 1.8
 */
public void getSSDPIPv6MulticastAddress(String ip) {
  this.getDeviceData().setMulticastIPv6Address(ip);
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param inets
 *            The IP that will be used for binding the SSDP service. Use
 *            <code>null</code> to get the default beahvior
 */
public void setSSDPBindAddress(InetAddress[] inets) {
  this.getDeviceData().setSSDPBindAddress(inets);
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param ip
 *            The IPv address used for Multicast comunication
 */
public void setMulticastIPv6Address(String ip) {
  this.getDeviceData().setMulticastIPv6Address(ip);
}

代码示例来源:origin: i2p/i2p.i2p

/**
 * 
 * @param ip
 *            The IPv4 address used for Multicast comunication
 */
public void setMulticastIPv4Address(String ip) {
  this.getDeviceData().setMulticastIPv4Address(ip);
}

代码示例来源:origin: i2p/i2p.i2p

public InetAddress[] getHTTPBindAddress() {
  return this.getDeviceData().getHTTPBindAddress();
}

代码示例来源:origin: i2p/i2p.i2p

private Advertiser getAdvertiser() {
  return getDeviceData().getAdvertiser();
}

代码示例来源:origin: i2p/i2p.i2p

public void setHTTPPort(int port) {
  getDeviceData().setHTTPPort(port);
}

代码示例来源:origin: i2p/i2p.i2p

private void setDescriptionFile(File file) {
  getDeviceData().setDescriptionFile(file);
}

代码示例来源:origin: i2p/i2p.i2p

public SSDPPacket getSSDPPacket() {
  if (isRootDevice() == false)
    return null;
  return getDeviceData().getSSDPPacket();
}

代码示例来源:origin: i2p/i2p.i2p

public int getLeaseTime() {
  SSDPPacket packet = getSSDPPacket();
  if (packet != null)
    return packet.getLeaseTime();
  return getDeviceData().getLeaseTime();
}

代码示例来源:origin: i2p/i2p.i2p

public String getLocation() {
  SSDPPacket packet = getSSDPPacket();
  if (packet != null)
    return packet.getLocation();
  return getDeviceData().getLocation();
}

代码示例来源:origin: i2p/i2p.i2p

public void setLeaseTime(int value) {
  getDeviceData().setLeaseTime(value);
  Advertiser adv = getAdvertiser();
  if (adv != null) {
    announce();
    adv.restart();
  }
}

相关文章

Device类方法