Examples of UPnPRootDevice


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

Examples of com.aelitis.net.upnp.UPnPRootDevice

  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

Examples of com.aelitis.net.upnp.UPnPRootDevice

                 
                  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

Examples of com.aelitis.net.upnp.UPnPRootDevice

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

Examples of com.aelitis.net.upnp.UPnPRootDevice

      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

Examples of com.aelitis.net.upnp.UPnPRootDevice

   
    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

Examples of net.yacy.upnp.devices.UPNPRootDevice

      public void eventSSDPAlive(String usn, String udn, String nt, String maxAge, URL location) {
        InternetGatewayDevice[] newIGD = { null };
        boolean error = false;
        String errorMsg = null;
        try {
          newIGD[0] = new InternetGatewayDevice(new UPNPRootDevice(location, maxAge, "", usn, udn));
        } catch (UnsupportedOperationException e) {
          error = true;
          errorMsg = e.getMessage();
        } catch (MalformedURLException e) {
          error = true;
View Full Code Here

Examples of net.yacy.upnp.devices.UPNPRootDevice

      public void eventSSDPAlive(String usn, String udn, String nt, String maxAge, URL location) {
        InternetGatewayDevice[] newIGD = { null };
        boolean error = false;
        String errorMsg = null;
        try {
          newIGD[0] = new InternetGatewayDevice(new UPNPRootDevice(location, maxAge, "", usn, udn));
        } catch (UnsupportedOperationException e) {
          error = true;
          errorMsg = e.getMessage();
        } catch (MalformedURLException e) {
          error = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.