Examples of ProviderRequestException


Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

      return _connection.getObject( _bucket, object.getPath( )
        .getAbsolutePath( ) ).get( );
  }
  catch ( Exception e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  {
      return _connection.bucketExists( bucketName ).get( ).booleanValue( );
  }
  catch ( Exception e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  {
      _connection.putBucketIfNotExists( bucketName ).get( );
  }
  catch ( Exception e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  {
      bucket = listResult.get( );
  }
  catch ( Exception e )
  {
      throw new ProviderRequestException( e );
  }
  SortedSet<Metadata> contents = bucket.getContents( );
 
  ListBucketResult output = new ListBucketResult( );
  output.setIsTruncated( bucket.isTruncated( ) );
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

    }
    else
    {
        if ( !new RobustFile( child ).delete( ) )
        {
      throw new ProviderRequestException(
        "Could not delete file "
        + file.getAbsolutePath( ) + "." );
        }
    }
      }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

        );
      copyStream.copyInputToOutput( );
  }
  catch ( FileNotFoundException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  {
      if ( !localToFile.exists( ) )
      {
    if ( !localToFile.createNewFile( ) )
    {
        throw new ProviderRequestException(
          "Could not create target file '"
          + localToFile.getAbsolutePath( ) + "'." );
    }
      }
     
      RepeatableBufferedCopyStream copyStream =
        new RepeatableBufferedCopyStream(
        new FileInputStream( localFromFile ),
        new FileOutputStream( localToFile )
        );
      copyStream.copyInputToOutput( );
  }
  catch ( FileNotFoundException e )
  {
      throw new ProviderRequestException( e );
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  {
      if ( !localToFile.exists( ) )
      {
    if ( !localToFile.createNewFile( ) )
    {
        throw new ProviderRequestException(
          "Could not create copy target file, '"
          + localToFile.getAbsolutePath( ) + "'." );
    }
    RepeatableBufferedCopyStream copyStream =
      new RepeatableBufferedCopyStream(
      new FileInputStream( localFromFile ),
      new FileOutputStream( localToFile )
      );
    copyStream.copyInputToOutput( );
      }
  }
  catch ( IOException e )
  {
      throw new ProviderRequestException( e );
  }
    }
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

 
  if ( !localToDirectory.exists( ) )
  {
      if ( !localToDirectory.mkdir( ) )
      {
    throw new ProviderRequestException(
      "Could not create copy target directory, '"
      + localToDirectory.getAbsolutePath( ) + "'." );
      }
  }
 
View Full Code Here

Examples of com.cloudloop.adapter.exceptions.ProviderRequestException

  File localDir =
    new File( _pathNormalizer.normalizeToStorePath( directory
    .getPath( ) ) );
  if ( !localDir.mkdir( ) )
  {
      throw new ProviderRequestException(
        "Unable to create directory '" + localDir.getAbsolutePath( )
        + "'." );
  }
  return getDirectory( _pathNormalizer
    .normalizeToCloudStorePath(
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.