Examples of UPnPAction


Examples of com.aelitis.net.upnp.UPnPAction

  getFreeSpace(
    String    client_id )
 
    throws UPnPException
  {
    UPnPAction act = service.getAction( "GetFreeSpace" );
   
    if ( act == null ){
           
      throw( new UPnPException( "GetFreeSpace not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
       
      inv.addArgument( "NewClientID", client_id );
     
      UPnPActionArgument[]  args = inv.invoke();
           
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

  activate(
    String    client_id )
 
    throws UPnPException
  {
    UPnPAction act = service.getAction( "Activate" );
   
    if ( act == null ){
           
      throw( new UPnPException( "Activate not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
       
      inv.addArgument( "NewClientID", client_id );
     
      UPnPActionArgument[]  args = inv.invoke();
           
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

    String client_id,
    String hash_list )
     
    throws UPnPException
  {
    UPnPAction act = service.getAction( "SetDownloads" );
   
    if ( act == null ){
           
      throw( new UPnPException( "SetDownloads not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      inv.addArgument( "NewClientID", client_id );
      inv.addArgument( "NewTorrentHashList", hash_list );
     
      UPnPActionArgument[]  args = inv.invoke();
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

    String   hash,
    String  torrent )
     
    throws UPnPException
  {
    UPnPAction act = service.getAction( "AddDownload" );
   
    if ( act == null ){
           
      throw( new UPnPException( "AddDownload not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      inv.addArgument( "NewClientID", client_id );
      inv.addArgument( "NewTorrentHash", hash );
      inv.addArgument( "NewTorrentData", torrent );
     
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

    int    offset,
    int    total_size )
     
    throws UPnPException
  {
    UPnPAction act = service.getAction( "AddDownloadChunked" );
   
    if ( act == null ){
           
      throw( new UPnPException( "AddDownloadChunked not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      inv.addArgument( "NewClientID", client_id );
      inv.addArgument( "NewTorrentHash", hash );
      inv.addArgument( "NewTorrentData", chunk );
      inv.addArgument( "NewChunkOffset", String.valueOf( offset ));
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

      String   hash,
      String  required_map )
       
      throws UPnPException
    {
      UPnPAction act = service.getAction( "UpdateDownload" );
     
      if ( act == null ){
             
        throw( new UPnPException( "UpdateDownload not supported" ));
       
      }else{
           
        UPnPActionInvocation inv = act.getInvocation();
             
        inv.addArgument( "NewClientID", client_id );
       inv.addArgument( "NewTorrentHash", hash );
       inv.addArgument( "NewPieceRequiredMap", required_map );
       
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

    String   client_id,
    String   hash )   
 
    throws UPnPException
  {
    UPnPAction act = service.getAction( "RemoveDownload" );
   
    if ( act == null ){
           
      throw( new UPnPException( "RemoveDownload not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      inv.addArgument( "NewClientID", client_id );
      inv.addArgument( "NewTorrentHash", hash );
   
      UPnPActionArgument[]  args = inv.invoke();
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

    String   client_id,
    String   hash )   
 
    throws UPnPException
  {
    UPnPAction act = service.getAction( "StartDownload" );
   
    if ( act == null ){
           
      throw( new UPnPException( "StartDownload not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      inv.addArgument( "NewClientID", client_id );
      inv.addArgument( "NewTorrentHash", hash );
   
      UPnPActionArgument[]  args = inv.invoke();
View Full Code Here

Examples of com.aelitis.net.upnp.UPnPAction

  public long[]
  getCommonLinkProperties()
 
    throws UPnPException
  {
    UPnPAction act = service.getAction( "GetCommonLinkProperties" );
   
    if ( act == null ){
     
      service.getDevice().getRootDevice().getUPnP().log( "Action 'GetCommonLinkProperties' not supported, binding not established" );
     
      throw( new UPnPException( "GetCommonLinkProperties not supported" ));
     
    }else{
         
      UPnPActionInvocation inv = act.getInvocation();
           
      UPnPActionArgument[]  args = inv.invoke();
     
      long[]  res = new long[2];
     
View Full Code Here

Examples of org.osgi.service.upnp.UPnPAction

    else if (node.category.equals(UPnPDeviceTreeNode.SERVICE)){
      UPnPService service = (UPnPService) node.getUserObject();     
      makeProperties(service);
    }
    else if (node.category.equals(UPnPDeviceTreeNode.ACTION)){
      UPnPAction action = (UPnPAction) node.getUserObject();
      makeProperties(action);
      Mediator.getPropertiesViewer().setAction(action);
    }
    else if (node.category.equals(UPnPDeviceTreeNode.STATE)
            ||node.category.equals(UPnPDeviceTreeNode.EVENTED_STATE)
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.