Class DownloadHandler
java.lang.Object
org.gcube.data.access.storagehub.handlers.DownloadHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsedownloadFileFromStorageBackend(String storageId, String storageName) jakarta.ws.rs.core.ResponsedownloadFileItem(javax.jcr.Session ses, org.gcube.common.storagehub.model.items.AbstractFileItem fileItem, String login, boolean withAccounting) jakarta.ws.rs.core.ResponsedownloadFolderItem(javax.jcr.Session ses, String login, org.gcube.common.storagehub.model.items.FolderItem item, boolean withAccounting) jakarta.ws.rs.core.ResponsedownloadVersionedItem(javax.jcr.Session ses, String login, org.gcube.common.storagehub.model.items.AbstractFileItem currentItem, String versionName, boolean withAccounting)
-
Constructor Details
-
DownloadHandler
public DownloadHandler()
-
-
Method Details
-
downloadFolderItem
public jakarta.ws.rs.core.Response downloadFolderItem(javax.jcr.Session ses, String login, org.gcube.common.storagehub.model.items.FolderItem item, boolean withAccounting) throws org.gcube.common.storagehub.model.exceptions.StorageHubException, javax.jcr.RepositoryException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionjavax.jcr.RepositoryException
-
downloadFileItem
public jakarta.ws.rs.core.Response downloadFileItem(javax.jcr.Session ses, org.gcube.common.storagehub.model.items.AbstractFileItem fileItem, String login, boolean withAccounting) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.PluginInitializationException, org.gcube.common.storagehub.model.exceptions.PluginNotFoundException, org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.PluginInitializationExceptionorg.gcube.common.storagehub.model.exceptions.PluginNotFoundExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-
downloadVersionedItem
public jakarta.ws.rs.core.Response downloadVersionedItem(javax.jcr.Session ses, String login, org.gcube.common.storagehub.model.items.AbstractFileItem currentItem, String versionName, boolean withAccounting) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-
downloadFileFromStorageBackend
public jakarta.ws.rs.core.Response downloadFileFromStorageBackend(String storageId, String storageName) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.PluginInitializationException, org.gcube.common.storagehub.model.exceptions.PluginNotFoundException, org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.PluginInitializationExceptionorg.gcube.common.storagehub.model.exceptions.PluginNotFoundExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-