@Path(value="storage") public class StorageIDResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
STORAGEID_RESOLVER |
protected static org.gcube.contentmanagement.blobstorage.service.IClient |
storageManagerClient |
| Constructor and Description |
|---|
StorageIDResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.gcube.contentmanagement.blobstorage.service.IClient |
getStorageClientInstance(org.gcube.contentmanager.storageclient.wrapper.MemoryType memory)
Get a storage-manager client instance.
|
javax.ws.rs.core.Response |
getStorageId(javax.servlet.http.HttpServletRequest req,
String storageId,
String fileName,
String contentType,
String contentDisposition,
boolean validation)
Gets the storage id.
|
static StorageMetadataFile |
getStorageMetadataFile(org.gcube.contentmanagement.blobstorage.service.IClient iClient,
String toSEID)
Gets the storage metadata file.
|
javax.ws.rs.core.Response |
httpDoHead(javax.servlet.http.HttpServletRequest req,
String storageId,
boolean hproxycheck)
Http do head.
|
protected static javax.ws.rs.core.Response |
resolveStorageId(javax.servlet.http.HttpServletRequest httpRequest,
String storageId,
String fileName,
String contentType,
ConstantsResolver.CONTENT_DISPOSITION_VALUE contentDisposition,
boolean validation)
Resolve storage id.
|
protected javax.ws.rs.core.Response |
validationPayload(javax.servlet.http.HttpServletRequest httpRequest,
String storageId)
Validation payload.
|
protected static final String STORAGEID_RESOLVER
protected static org.gcube.contentmanagement.blobstorage.service.IClient storageManagerClient
@GET
@Path(value="/{storage-id}")
public javax.ws.rs.core.Response getStorageId(@Context
javax.servlet.http.HttpServletRequest req,
@PathParam(value="storage-id")
String storageId,
@QueryParam(value="fileName")
String fileName,
@QueryParam(value="contentType")
String contentType,
@QueryParam(value="content-disposition")
String contentDisposition,
@QueryParam(value="validation")
boolean validation)
throws javax.ws.rs.WebApplicationException
req - the reqstorageId - the storage idfileName - the file namecontentType - the content typevalidation - the validationjavax.ws.rs.WebApplicationException - the web application exceptionprotected static javax.ws.rs.core.Response resolveStorageId(javax.servlet.http.HttpServletRequest httpRequest,
String storageId,
String fileName,
String contentType,
ConstantsResolver.CONTENT_DISPOSITION_VALUE contentDisposition,
boolean validation)
throws Exception
httpRequest - the http requeststorageId - the storage idfileName - the file namecontentType - the content typevalidation - the validationException - the exception@HEAD
@Path(value="/{storage-id}")
public javax.ws.rs.core.Response httpDoHead(@Context
javax.servlet.http.HttpServletRequest req,
@PathParam(value="storage-id")
String storageId,
@QueryParam(value="hproxycheck")
boolean hproxycheck)
throws javax.ws.rs.WebApplicationException
req - the http requeststorageId - the storage idhproxycheck - the hproxycheckjavax.ws.rs.WebApplicationException - the web application exceptionprotected javax.ws.rs.core.Response validationPayload(javax.servlet.http.HttpServletRequest httpRequest,
String storageId)
throws Exception
httpRequest - the http requeststorageId - the storage idException - the exceptionprotected static org.gcube.contentmanagement.blobstorage.service.IClient getStorageClientInstance(org.gcube.contentmanager.storageclient.wrapper.MemoryType memory)
memoryType - indicates the memory type (Persistent, Volatile or whatever)public static StorageMetadataFile getStorageMetadataFile(org.gcube.contentmanagement.blobstorage.service.IClient iClient, String toSEID)
iClient - the i clienttoSEID - the to SEIDCopyright © 2021. All Rights Reserved.