org.gcube.contentmanagement
Class StorageManagerResourcePlugin

java.lang.Object
  extended by org.gcube.contentmanagement.StorageManagerResourcePlugin
All Implemented Interfaces:
org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin

public class StorageManagerResourcePlugin
extends Object
implements org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
StorageManagerResourcePlugin()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

StorageManagerResourcePlugin

public StorageManagerResourcePlugin()
Method Detail

getPluginName

public String getPluginName()
Specified by:
getPluginName in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin

getContent

public 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
Specified by:
getContent in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin
Throws:
org.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException

getURLConnectionByStorageClient

public URLConnection getURLConnectionByStorageClient(String url)
                                              throws Exception
Throws:
Exception

extractLocation

public static String extractLocation(String url)

getSize

public 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
Specified by:
getSize in interface org.gcube.common.homelibrary.home.workspace.ExternalResourceLinkPlugin
Throws:
org.gcube.common.homelibrary.home.workspace.exceptions.ExternalResourceBrokenLinkException
org.gcube.common.homelibrary.home.exceptions.InternalErrorException


Copyright © 2013. All Rights Reserved.