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:
parent
56ab11b3ec
commit
79ba6fa01e
|
@ -19,6 +19,12 @@
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.data-transfer.uri-resolver.1-4-0"
|
<Changeset component="org.gcube.data-transfer.uri-resolver.1-4-0"
|
||||||
date="2015-09-21">
|
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>
|
</Changeset>
|
||||||
</ReleaseNotes>
|
</ReleaseNotes>
|
|
@ -97,8 +97,8 @@ public class StorageIDResolver extends HttpServlet {
|
||||||
try{
|
try{
|
||||||
StorageClient client = new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), StorageIDResolver.class.getName(), AccessType.PUBLIC);
|
StorageClient client = new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), StorageIDResolver.class.getName(), AccessType.PUBLIC);
|
||||||
IClient icClient = client.getClient();
|
IClient icClient = client.getClient();
|
||||||
|
String toSEID = icClient.getId(smpID); //to Storage Encrypted ID
|
||||||
in=icClient.get().RFileAsInputStream(smpID); //input stream
|
in=icClient.get().RFileAsInputStream(toSEID); //input stream
|
||||||
|
|
||||||
MyFile file = client.getClient().getMetaFile().RFile(smpID);
|
MyFile file = client.getClient().getMetaFile().RFile(smpID);
|
||||||
logger.debug("MetaFile retrieved from storage? "+ (file!=null));
|
logger.debug("MetaFile retrieved from storage? "+ (file!=null));
|
||||||
|
|
Loading…
Reference in New Issue