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

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

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

Device.setPresentationURL介绍

暂无

代码示例

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

public void setPresentationListener(PresentationListener listener) {
  this.presentationListener = listener;
  if (listener != null) {
    setPresentationURL(DEFAULT_PRESENTATION_URI);
  } else {
    removePresentationURL();
  }
}

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

public void setPresentationListener(PresentationListener listener) {
  this.presentationListener = listener;
  if (listener != null) {
    setPresentationURL(DEFAULT_PRESENTATION_URI);
  } else {
    removePresentationURL();
  }
}

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

public void setPresentationListener(PresentationListener listener) {
  this.presentationListener = listener;
  if (listener != null) {
    setPresentationURL(DEFAULT_PRESENTATION_URI);
  } else {
    removePresentationURL();
  }
}

代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver

private static void buildDevice(String id,Device parent, ServiceReference sr) {
  Node dev = new Node(Device.ELEM_NAME);
  DeviceData dd = new DeviceData();
  dd.setDescriptionURI(id+"/gen-desc.xml");
  dev.setUserData(dd);
  
  Device devUPnP = new Device(dev);
  
  devUPnP.setFriendlyName((String) sr.getProperty(UPnPDevice.FRIENDLY_NAME));
  devUPnP.setManufacture((String) sr.getProperty(UPnPDevice.MANUFACTURER));
  devUPnP.setManufactureURL((String) sr.getProperty(UPnPDevice.MANUFACTURER_URL));
  devUPnP.setModelDescription((String) sr.getProperty(UPnPDevice.MODEL_DESCRIPTION));
  devUPnP.setModelName((String) sr.getProperty(UPnPDevice.MODEL_NAME));
  devUPnP.setModelNumber((String) sr.getProperty(UPnPDevice.MODEL_NUMBER));
  devUPnP.setModelURL((String) sr.getProperty(UPnPDevice.MODEL_URL));
  devUPnP.setSerialNumber((String) sr.getProperty(UPnPDevice.SERIAL_NUMBER));
  devUPnP.setUDN((String) sr.getProperty(UPnPDevice.UDN));
  devUPnP.setUPC((String) sr.getProperty(UPnPDevice.UPC));
  devUPnP.setLocation(id+"/gen-desc.xml");		
  addServices(id,devUPnP,sr);
  addDevices(id,devUPnP,sr);
  parent.addDevice(devUPnP); //		twa: essential!!!!!!!
  devUPnP.setPresentationURL((String) sr.getProperty(UPnPDevice.PRESENTATION_URL));
  
}

代码示例来源:origin: apache/felix

private static void buildDevice(String id,Device parent, ServiceReference sr) {
  Node dev = new Node(Device.ELEM_NAME);
  DeviceData dd = new DeviceData();
  dd.setDescriptionURI(id+"/gen-desc.xml");
  dev.setUserData(dd);
  
  Device devUPnP = new Device(dev);
  
  devUPnP.setDeviceType(extractDeviceType(sr));
  devUPnP.setFriendlyName((String) sr.getProperty(UPnPDevice.FRIENDLY_NAME));
  devUPnP.setManufacture((String) sr.getProperty(UPnPDevice.MANUFACTURER));
  devUPnP.setManufactureURL((String) sr.getProperty(UPnPDevice.MANUFACTURER_URL));
  devUPnP.setModelDescription((String) sr.getProperty(UPnPDevice.MODEL_DESCRIPTION));
  devUPnP.setModelName((String) sr.getProperty(UPnPDevice.MODEL_NAME));
  devUPnP.setModelNumber((String) sr.getProperty(UPnPDevice.MODEL_NUMBER));
  devUPnP.setModelURL((String) sr.getProperty(UPnPDevice.MODEL_URL));
  devUPnP.setSerialNumber((String) sr.getProperty(UPnPDevice.SERIAL_NUMBER));
  devUPnP.setUDN((String) sr.getProperty(UPnPDevice.UDN));
  devUPnP.setUPC((String) sr.getProperty(UPnPDevice.UPC));
  devUPnP.setLocation(id+"/gen-desc.xml");		
  addServices(id,devUPnP,sr);
  addDevices(id,devUPnP,sr);
  parent.addDevice(devUPnP); //		twa: essential!!!!!!!
  devUPnP.setPresentationURL((String) sr.getProperty(UPnPDevice.PRESENTATION_URL));
  
}

代码示例来源:origin: org.apache.felix/org.apache.felix.upnp.basedriver

devUPnP.setPresentationURL((String) sr.getProperty(UPnPDevice.PRESENTATION_URL));

代码示例来源:origin: apache/felix

private static Device buildRootDeviceNode(Node root, ServiceReference sr){		
  Node dev = new Node(Device.ELEM_NAME);
  root.addNode(dev);
  DeviceData dd = new DeviceData();
  dd.setDescriptionURI("/gen-desc.xml");
  dev.setUserData(dd);
  Device devUPnP = new Device(root,dev);
  devUPnP.setDeviceType(extractDeviceType(sr));
  devUPnP.setFriendlyName((String) sr.getProperty(UPnPDevice.FRIENDLY_NAME));
  devUPnP.setManufacture((String) sr.getProperty(UPnPDevice.MANUFACTURER));
  devUPnP.setManufactureURL((String) sr.getProperty(UPnPDevice.MANUFACTURER_URL));
  devUPnP.setModelDescription((String) sr.getProperty(UPnPDevice.MODEL_DESCRIPTION));
  devUPnP.setModelName((String) sr.getProperty(UPnPDevice.MODEL_NAME));
  devUPnP.setModelNumber((String) sr.getProperty(UPnPDevice.MODEL_NUMBER));
  devUPnP.setModelURL((String) sr.getProperty(UPnPDevice.MODEL_URL));
  devUPnP.setSerialNumber((String) sr.getProperty(UPnPDevice.SERIAL_NUMBER));
  devUPnP.setUDN((String) sr.getProperty(UPnPDevice.UDN));
  devUPnP.setUPC((String) sr.getProperty(UPnPDevice.UPC));
  devUPnP.setLocation("/gen-desc.xml");		
  addServices("",devUPnP,sr);
  addDevices("",devUPnP,sr);
  devUPnP.setPresentationURL((String) sr.getProperty(UPnPDevice.PRESENTATION_URL));
  
  return devUPnP;
}

相关文章

Device类方法