This commit is contained in:
Lucio Lelii 2018-10-24 08:08:13 +00:00
parent 6b7ee36ed3
commit 91676d60cf
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import javax.ws.rs.core.Response;
import org.gcube.common.storagehub.client.StreamDescriptor;
import org.gcube.common.storagehub.client.dsl.StorageHubClient;
import org.gcube.datatransfer.resolver.services.error.ExceptionManager;
import org.gcube.smartgears.utils.InnerMethodName;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -33,6 +34,7 @@ public class StorageHubResolver {
@GET
@Path("")
public Response download(@Context HttpServletRequest httpRequest) {
InnerMethodName.instance.set("resolveStorageHubPublicLink");
logger.info(this.getClass().getSimpleName()+" GET starts...");
StorageHubClient shc = new StorageHubClient();
@ -59,6 +61,7 @@ public class StorageHubResolver {
@GET
@Path("{version}")
public Response downloadVersion(@Context HttpServletRequest httpRequest, @PathParam("version") String version) {
InnerMethodName.instance.set("resolveStorageHubPublicLinkWithVersion");
logger.info(StorageHubResolver.class.getSimpleName() +" downloadVersion called");
StorageHubClient shc = new StorageHubClient();