Package com.aelitis.net.upnp

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


  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

    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

    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

    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

      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

    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

    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

  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

TOP

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

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.