Package com.cloudloop.storage.exceptions

Examples of com.cloudloop.storage.exceptions.CloudStoreException


    SAXParser xmlparser = parserfactory.newSAXParser( );
    xmlparser.parse( input, this );
      }
      catch ( IOException e )
      {
    throw new CloudStoreException( e );
      }
      catch ( SAXException e )
      {
    throw new CloudStoreException( e );
      }
      catch ( ParserConfigurationException e )
      {
    throw new CloudStoreException( e );
      }
      finally
      {
    try
    {
View Full Code Here


      output.setLastModifiedDate( sdf
        .parse( _tags.get( key ) ) );
        }
        catch ( ParseException e )
        {
      throw new CloudStoreException(
        "Error parsing last modified date meta-data response from store '"
          + getCloudloopToken( ) + "'." );
        }
    }
    else if ( key.equals( CONTENT_LENGTH ) )
View Full Code Here

    if ( key != null )
    {
        List<String> fields = map.get( key );
        if ( fields.size( ) > 1 )
        {
      throw new CloudStoreException(
        "Error parsing object meta-data. Found more than one value for response header '"
          + key + "'." );
        }
        _tags.put( key, fields.get( 0 ) );
    }
View Full Code Here

              meta
      .getLastModified( ).toGregorianCalendar( ) ) );
      }
      catch ( DatatypeConfigurationException e )
      {
    throw new CloudStoreException( e );
      }
      entry.setSize( meta.getSize( ) );
      entry.setStorageClass( StorageClass
        .valueOf( meta.getStorageClass( ) ) );
      outputContents.add( entry );
View Full Code Here

      setAccessKeyId( accessKeyId );
      setKey( secretKey );
  }
  catch ( InvalidKeyException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( NoSuchAlgorithmException e )
  {
      throw new CloudStoreException( e );
  }
  catch ( UnsupportedEncodingException e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here

    {
        _client.createContainer( _rootContainerName );
    }
    catch ( IOException e )
    {
        throw new CloudStoreException(
          "Could not create root container", e );
    }
      }
  }
  catch ( IOException e )
  {
      throw new CloudStoreException(
        "Could not verify whether root store exists", e );
  }
    }
View Full Code Here

      .getAbsolutePath( ) );
      }
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
    }
View Full Code Here

    }
      }
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
  return cloudStoreObjects
    .toArray( new CloudStoreObject[ cloudStoreObjects.size( ) ] );
    }
View Full Code Here

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

        .getStreamToStore( ), file.getContentType( ), file
        .getPath( ).getAbsolutePath( ), file.getCustomTags( ) );
  }
  catch ( IOException e )
  {
      throw new CloudStoreException( e );
  }
    }
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.