@ Override public RetrievedContent getContent ( String spaceID , String contentID , String storeID , String range ) throws InvalidRequestException , ResourceException { try { StorageProvider storage = storageProviderFactory . getStorageProvider ( storeID ) ; return storage . getContent ( spaceID , contentID , range ) ; } catch ( NotFoundException e ) { throw new ResourceNotFoundException ( "get content" , spaceID , contentID , e ) ; } catch ( StorageStateException e ) { throw new ResourceStateException ( "get content" , spaceID , contentID , e ) ; } catch ( IllegalArgumentException e ) { throw new InvalidRequestException ( e . getMessage ( ) ) ; } catch ( Exception e ) { storageProviderFactory . expireStorageProvider ( storeID ) ; throw new ResourceException ( "get content" , spaceID , contentID , e ) ; } }
Retrieves content from a space .