1990: GeoExplorer enhancements: WPS integration

Task-Url: https://support.d4science.org/issues/1990

Updated Storage ID Resolver according to #1959

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@122317 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-01-19 14:23:29 +00:00
parent 56ab11b3ec
commit 79ba6fa01e
2 changed files with 38 additions and 32 deletions

View File

@ -19,6 +19,12 @@
</Changeset>
<Changeset component="org.gcube.data-transfer.uri-resolver.1-4-0"
date="2015-09-21">
<Change>[Feature #416] Added code to read fileName and content-type (mime type) from Storage </Change>
<Change>[Feature #416] Added code to read fileName and content-type
(mime type) from Storage </Change>
</Changeset>
<Changeset component="org.gcube.data-transfer.uri-resolver.1-5-0"
date="2016-01-19">
<Change>[Feature #1925] Updated the method to resolve gCube Storage ID</Change>
<Change>[Feature #1925] Added class UriResolverRewriteFilter to filter the different public link types</Change>
</Changeset>
</ReleaseNotes>

View File

@ -97,8 +97,8 @@ public class StorageIDResolver extends HttpServlet {
try{
StorageClient client = new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), StorageIDResolver.class.getName(), AccessType.PUBLIC);
IClient icClient = client.getClient();
in=icClient.get().RFileAsInputStream(smpID); //input stream
String toSEID = icClient.getId(smpID); //to Storage Encrypted ID
in=icClient.get().RFileAsInputStream(toSEID); //input stream
MyFile file = client.getClient().getMetaFile().RFile(smpID);
logger.debug("MetaFile retrieved from storage? "+ (file!=null));