Package com.cloudloop.storage.exceptions

Examples of com.cloudloop.storage.exceptions.CloudStoreException


      return _client.getObjectAsStream( _rootContainerName, file
        .getPath( ).getAbsolutePath( ) );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here


            object.getPath( )
        .getAbsolutePath( ) ) != null );
  }
  catch ( Exception e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here

      FilesObjectMetaData metadata = _client
        .getObjectMetaData( getRootContainer( ).getName( ), obj
        .getPath( ).getAbsolutePath( ) );
      if ( metadata == null )
      {
    throw new CloudStoreException( "No object found at path '"
      + obj.getPath( ).getAbsolutePath( ) + "'." );
      }
     
      return getMetaData( metadata );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here

      _client.updateObjectMetadata( getRootContainer( ).getName( ), obj
        .getPath( ).getAbsolutePath( ), metadata.getCustomTags( ) );
  }
  catch ( FilesAuthorizationException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( FilesInvalidNameException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( HttpException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
  metadata.setComplete( );
  return metadata;
    }
View Full Code Here

      // Send the HTTP PUT request.
      return performRequest( httpConn );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here

      xmlparser.parse( doc, handler );
      code = handler.getErrorCode( );
  }
  catch ( ParserConfigurationException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( SAXException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
  return code;
    }
View Full Code Here

      }
  }
 
  if ( !file.delete( ) )
  {
      throw new CloudStoreException(
        "Could not delete direcory " + file );
  }
    }
View Full Code Here

      case FILE:
    return obj.getStoreObjectType( ) == CloudStoreObjectType.FILE;
      case DIRECTORY:
    return obj.getStoreObjectType( ) == CloudStoreObjectType.DIRECTORY;
      default:
    throw new CloudStoreException(
      "Unknown CloudStoreObjectType, '" + filter + "'." );
  }
    }
View Full Code Here

    new RobustFile( _pathNormalizer.normalizeToStorePath( file
    .getPath( ) ) );
 
  if ( !localFile.delete( ) )
  {
      throw new CloudStoreException( "Could not delete file " + localFile );
  }
    }
View Full Code Here

       
    case FILE:
        return file.isFile( );
       
    default:
        throw new CloudStoreException(
          "Unknown CloudStoreObjectType, '"
          + object.getStoreObjectType( ).toString( ) + "'." );
      }
  }
 
View Full Code Here

TOP

Related Classes of com.cloudloop.storage.exceptions.CloudStoreException

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.