Package com.aelitis.net.upnp

Examples of com.aelitis.net.upnp.UPnPRootDevice


          // with same id
     
        actual_device = manager.addDevice( new_device );
      }
     
      UPnPRootDevice current_root = device.getRootDevice();
     
      UPnPRootDevice existing_root = (UPnPRootDevice)actual_device.getTransientProperty( KEY_ROOT_DEVICE );
     
      if ( current_root != existing_root ){
       
        actual_device.setTransientProperty( KEY_ROOT_DEVICE, current_root );
       
View Full Code Here


  setService(
    UPnPOfflineDownloader  _service )
  {
    service  = _service;
   
    UPnPRootDevice root = service.getGenericService().getDevice().getRootDevice();
   
    service_ip = root.getLocation().getHost();
   
    try{
      service_ip = InetAddress.getByName( service_ip ).getHostAddress();
     
    }catch( Throwable e ){
     
      Debug.out( e );
    }
   
    Map cache = root.getDiscoveryCache();
   
    if ( cache != null ){
     
      setPersistentMapProperty( PP_OD_UPNP_DISC_CACHE, cache );
    }
   
    manufacturer = root.getDevice().getManufacturer();
   
    setPersistentStringProperty( PP_OD_MANUFACTURER, manufacturer );
   
    updateDownloads();
  }
View Full Code Here

                 
                  Set<UPnPRootDevice> devices = new HashSet<UPnPRootDevice>();
                 
                  for ( UPnPPluginService service: services ){
                   
                    UPnPRootDevice root_device = service.getService().getGenericService().getDevice().getRootDevice();
                   
                    if ( !devices.contains( root_device )){
                     
                      devices.add( root_device );
                 
                      Map<String,String>  map = new HashMap<String, String>();
                   
                      upnp_list.add( map );
                     
                      map.put( "i", root_device.getInfo());
                    }
                  }
                }
            }
        }catch( Throwable e ){         
View Full Code Here

  {
    UPnPDevice device = device_may_be_null;
   
    if ( device != null ){
     
      UPnPRootDevice root = device.getRootDevice();
     
      return( root.getLocation());
    }
   
    return( null );
  }
View Full Code Here

      UPnPDevice device = device_may_be_null;
 
      if ( device != null ){
       
        UPnPRootDevice root = device.getRootDevice();
       
        URL location = root.getLocation();
       
        return( InetAddress.getByName( location.getHost() ));
       
      }else{
       
View Full Code Here

   
    UPnPDevice device = device_may_be_null;
   
    if ( device != null ){
     
      UPnPRootDevice root = device.getRootDevice();
     
      URL location = root.getLocation();
     
      addDP( dp, "dht.reseed.ip", location.getHost() + ":" + location.getPort());
 
      String  model_details   = device.getModelName();
      String  model_url    = device.getModelURL();
View Full Code Here

TOP

Related Classes of com.aelitis.net.upnp.UPnPRootDevice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.