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

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

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

Device.getDeviceType介绍

暂无

代码示例

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

private String getNotifyDeviceTypeNT() {
  return getDeviceType();
}

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

public boolean isDeviceType(String value) {
  if (value == null)
    return false;
  return value.equals(getDeviceType());
}

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

private String getNotifyDeviceTypeUSN() {
  return getUDN() + "::" + getDeviceType();
}

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

public boolean isDevice(String name) {
  if (name == null)
    return false;
  if (name.endsWith(getUDN()) == true)
    return true;
  if (name.equals(getFriendlyName()) == true)
    return true;
  if (name.endsWith(getDeviceType()) == true)
    return true;
  return false;
}

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

String type = dev.getDeviceType();
  if ((ROUTER_DEVICE.equals(type) || ROUTER_DEVICE_2.equals(type)) &&
  dev.isRootDevice() &&

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

synchronized (lock) {
  for (Device current : _router.getDeviceList()) {
    String type = current.getDeviceType();
    if (!(WAN_DEVICE.equals(type) || WAN_DEVICE_2.equals(type)))
      continue;
    for (int i=0;i<current.getDeviceList().size();i++) {
      Device current2 = l.getDevice(i);
      type = current2.getDeviceType();
      if (!(WANCON_DEVICE.equals(type) || WANCON_DEVICE_2.equals(type)))
        continue;

代码示例来源:origin: cybergarage/cybergarage-upnp

private String getNotifyDeviceTypeNT() {
  return getDeviceType();
}

代码示例来源:origin: geniusgithub/MediaPlayer

private String getNotifyDeviceTypeNT() {
  return getDeviceType();
}

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

if (name == null)
  name = "???";
String type = dev.getDeviceType();
boolean isIGD = (ROUTER_DEVICE.equals(type) || ROUTER_DEVICE_2.equals(type)) && dev.isRootDevice();
name += isIGD ? " IGD" : (' ' + type);
    _log.warn("UP&P non-IGD device found, ignoring " + name + ' ' + dev.getDeviceType());
  synchronized (lock) {
    _otherUDNs.put(udn, name);

代码示例来源:origin: com.github.kmbulebu.nicknack/wemo-provider

protected static boolean isWemoSwitch(Device dev) {
  return dev != null && dev.getDeviceType() != null && DEVICE_URN_SWITCH.equals(dev.getDeviceType());
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public boolean isDeviceType(String value) {
  if (value == null)
    return false;
  return value.equals(getDeviceType());
}

代码示例来源:origin: geniusgithub/MediaPlayer

public boolean isDeviceType(String value) {
  if (value == null)
    return false;
  return value.equals(getDeviceType());
}

代码示例来源:origin: geniusgithub/MediaPlayer

public static boolean isMediaServerDevice(Device device){
  if ("urn:schemas-upnp-org:device:MediaServer:1".equalsIgnoreCase(device.getDeviceType())){
    return true;
  }
  return false;
}

代码示例来源:origin: geniusgithub/MediaPlayer

public static boolean isMediaRenderDevice(Device device){
  if ("urn:schemas-upnp-org:device:MediaRenderer:1".equalsIgnoreCase(device.getDeviceType())){
    return true;
  }
  return false;
}

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

postSearchResponse(ssdpPacket, devUDN, devUSN);
} else if (ST.isURNDevice(ssdpST) == true) {
  String devType = getDeviceType();
  if (ssdpST.equals(devType) == true) {

代码示例来源:origin: cybergarage/cybergarage-upnp

private String getNotifyDeviceTypeUSN() {
  return getUDN() + "::" + getDeviceType();
}

代码示例来源:origin: geniusgithub/MediaPlayer

private String getNotifyDeviceTypeUSN() {
  return getUDN() + "::" + getDeviceType();
}

代码示例来源:origin: cybergarage/cybergarage-upnp

public boolean isDevice(String name) {
  if (name == null)
    return false;
  if (name.endsWith(getUDN()) == true)
    return true;
  if (name.equals(getFriendlyName()) == true)
    return true;
  if (name.endsWith(getDeviceType()) == true)
    return true;
  return false;
}

代码示例来源:origin: geniusgithub/MediaPlayer

public boolean isDevice(String name) {
  if (name == null)
    return false;
  if (name.endsWith(getUDN()) == true)
    return true;
  if (name.equals(getFriendlyName()) == true)
    return true;
  if (name.endsWith(getDeviceType()) == true)
    return true;
  return false;
}

代码示例来源:origin: geniusgithub/MediaPlayer

postSearchResponse(ssdpPacket, devUDN, devUSN);
} else if (ST.isURNDevice(ssdpST) == true) {
  String devType = getDeviceType();
  if (ssdpST.equals(devType) == true) {

相关文章

Device类方法