Updated for publicLink() on workspace
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@98925 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
522c98a79d
commit
770218fdc7
|
@ -88,10 +88,10 @@ public class FilesStorage {
|
|||
InputStream is = null;
|
||||
try {
|
||||
|
||||
org.gcube.common.homelibrary.home.workspace.folder.items.File gcubeItem = ((org.gcube.common.homelibrary.home.workspace.folder.items.File) wi);
|
||||
|
||||
Handler.activateProtocol();
|
||||
URL smsHome = null;
|
||||
smsHome = new URL(gcubeItem.getPublicLink());
|
||||
smsHome = new URL(wi.getPublicLink(false));
|
||||
logger.debug("smsHome: [host:" + smsHome.getHost() + " path:"
|
||||
+ smsHome.getPath() + " ref:" + smsHome.getRef()
|
||||
+ " userinfo:" + smsHome.getUserInfo() + " ]");
|
||||
|
@ -141,10 +141,10 @@ public class FilesStorage {
|
|||
InputStream is = null;
|
||||
try {
|
||||
|
||||
org.gcube.common.homelibrary.home.workspace.folder.items.File gcubeItem = ((org.gcube.common.homelibrary.home.workspace.folder.items.File) wi);
|
||||
|
||||
Handler.activateProtocol();
|
||||
URL smsHome = null;
|
||||
smsHome = new URL(null, gcubeItem.getPublicLink(),
|
||||
smsHome = new URL(null, wi.getPublicLink(false),
|
||||
new URLStreamHandler() {
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue