public class StorageManagerResourcePlugin extends Object implements org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
StorageManagerResourcePlugin() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractLocation(String url) |
InputStream |
getContent(org.gcube.common.homelibrary.home.workspace.folder.items.ExternalResourceLink item) |
String |
getPluginName() |
long |
getSize(org.gcube.common.homelibrary.home.workspace.folder.items.ExternalResourceLink item) |
URLConnection |
getURLConnectionByStorageClient(String url) |
public String getPluginName()
getPluginName in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPluginpublic InputStream getContent(org.gcube.common.homelibrary.home.workspace.folder.items.ExternalResourceLink item) throws org.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException, org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getContent in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPluginorg.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionpublic URLConnection getURLConnectionByStorageClient(String url) throws Exception
Exceptionpublic long getSize(org.gcube.common.homelibrary.home.workspace.folder.items.ExternalResourceLink item)
throws org.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException,
org.gcube.common.homelibrary.home.exceptions.InternalErrorException
getSize in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPluginorg.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkExceptionorg.gcube.common.homelibrary.home.exceptions.InternalErrorExceptionCopyright © 2015. All Rights Reserved.