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;
|
InputStream is = null;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
org.gcube.common.homelibrary.home.workspace.folder.items.File gcubeItem = ((org.gcube.common.homelibrary.home.workspace.folder.items.File) wi);
|
|
||||||
Handler.activateProtocol();
|
Handler.activateProtocol();
|
||||||
URL smsHome = null;
|
URL smsHome = null;
|
||||||
smsHome = new URL(gcubeItem.getPublicLink());
|
smsHome = new URL(wi.getPublicLink(false));
|
||||||
logger.debug("smsHome: [host:" + smsHome.getHost() + " path:"
|
logger.debug("smsHome: [host:" + smsHome.getHost() + " path:"
|
||||||
+ smsHome.getPath() + " ref:" + smsHome.getRef()
|
+ smsHome.getPath() + " ref:" + smsHome.getRef()
|
||||||
+ " userinfo:" + smsHome.getUserInfo() + " ]");
|
+ " userinfo:" + smsHome.getUserInfo() + " ]");
|
||||||
|
@ -141,10 +141,10 @@ public class FilesStorage {
|
||||||
InputStream is = null;
|
InputStream is = null;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
org.gcube.common.homelibrary.home.workspace.folder.items.File gcubeItem = ((org.gcube.common.homelibrary.home.workspace.folder.items.File) wi);
|
|
||||||
Handler.activateProtocol();
|
Handler.activateProtocol();
|
||||||
URL smsHome = null;
|
URL smsHome = null;
|
||||||
smsHome = new URL(null, gcubeItem.getPublicLink(),
|
smsHome = new URL(null, wi.getPublicLink(false),
|
||||||
new URLStreamHandler() {
|
new URLStreamHandler() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue