示例#1
0
 public URL getURLBase() {
   String urlBase = UPnPImplUtils.getXmlParam(deviceElem, "URLBase");
   if (urlBase != null) {
     try {
       return new URL(urlBase);
     } catch (Throwable e) {
       e.printStackTrace();
       return null;
     }
   } else {
     return null;
   }
 }
示例#2
0
 public String getFriendlyName() {
   return UPnPImplUtils.getXmlParam(deviceElem, "friendlyName");
 }
示例#3
0
 public String getDeviceType() {
   return UPnPImplUtils.getXmlParam(deviceElem, "deviceType");
 }