Class StorageHubResolver
- java.lang.Object
-
- org.gcube.datatransfer.resolver.services.StorageHubResolver
-
@Path("shub") public class StorageHubResolver extends ObjectThe StorageHubResolver provides the methods either to download a gCube Workspace file or to get its metadata. See more at https://gcube.wiki.gcube-system.org/gcube/URI_Resolver#STORAGE-HUB_Resolver- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Dec 14, 2018
-
-
Field Summary
Fields Modifier and Type Field Description static StringSTORAGE_HUB_ID
-
Constructor Summary
Constructors Constructor Description StorageHubResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsedownload(javax.servlet.http.HttpServletRequest req, String contentDisposition)Download.javax.ws.rs.core.ResponsegetMetadata(javax.servlet.http.HttpServletRequest req)Gets the metadata.
-
-
-
Field Detail
-
STORAGE_HUB_ID
public static final String STORAGE_HUB_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetadata
@HEAD @Path("/{id}") public javax.ws.rs.core.Response getMetadata(@Context javax.servlet.http.HttpServletRequest req)Gets the metadata.- Parameters:
req- the req- Returns:
- the metadata
-
download
@GET @Path("/{id}") public javax.ws.rs.core.Response download(@Context javax.servlet.http.HttpServletRequest req, @QueryParam("content-disposition") String contentDisposition)Download.- Parameters:
req- the req- Returns:
- the response
-
-