org.gcube.vremanagement.softwaregateway.impl.repositorymanager
Class RepositoryManager

java.lang.Object
  extended by org.gcube.vremanagement.softwaregateway.impl.repositorymanager.RepositoryManager
Direct Known Subclasses:
NexusCache, NexusRepositoryManager

public abstract class RepositoryManager
extends Object


Field Summary
protected  boolean cacheEnabled
           
static String[] servers
           
static String SERVICE_ARCHIVE_IDENTIFIER
           
 
Constructor Summary
RepositoryManager(String[] mavenServerList)
           
 
Method Summary
abstract  String extractDepsFromMavenEmb(String url)
           
abstract  String get(Object mavenC, String extension, String classifier)
          Return the URL for download a maven object (pom, tar.gz, jar) that corresponds to the maven coordinates in input
abstract  String getSALocation(File tmpTargetDirectory, List<MavenCoordinates> mcList, Coordinates coordinates)
          Get location of software archive
abstract  String searchArtifact(String baseUrl, String groupName, String artifact, String extension, String ver, boolean pom, String classifier)
          Get location artifact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servers

public static String[] servers

SERVICE_ARCHIVE_IDENTIFIER

public static final String SERVICE_ARCHIVE_IDENTIFIER
See Also:
Constant Field Values

cacheEnabled

protected boolean cacheEnabled
Constructor Detail

RepositoryManager

public RepositoryManager(String[] mavenServerList)
Method Detail

get

public abstract String get(Object mavenC,
                           String extension,
                           String classifier)
                    throws MalformedURLException,
                           ServiceNotAvaiableFault
Return the URL for download a maven object (pom, tar.gz, jar) that corresponds to the maven coordinates in input

Parameters:
mavenC: - maven Coordinates
extension: - specify the kind of object that want to be returned
Returns:
Throws:
MalformedURLException
ServiceNotAvaiableFault

extractDepsFromMavenEmb

public abstract String extractDepsFromMavenEmb(String url)
                                        throws ServiceNotAvaiableFault
Parameters:
url - the url of the remote pom
is -
Returns:
Throws:
BadCoordinatesException
Exception
ServiceNotAvaiableFault

searchArtifact

public abstract String searchArtifact(String baseUrl,
                                      String groupName,
                                      String artifact,
                                      String extension,
                                      String ver,
                                      boolean pom,
                                      String classifier)
                               throws MalformedURLException
Get location artifact

Parameters:
baseUrl -
groupName -
artifact -
extension -
ver -
pom -
classifier -
Returns:
Throws:
MalformedURLException

getSALocation

public abstract String getSALocation(File tmpTargetDirectory,
                                     List<MavenCoordinates> mcList,
                                     Coordinates coordinates)
                              throws MalformedURLException,
                                     ServiceNotAvaiableFault,
                                     IOException,
                                     Exception
Get location of software archive

Parameters:
tmpTargetDirectory -
mcList -
coordinates -
Returns:
Throws:
MalformedURLException
ServiceNotAvaiableFault
IOException
Exception


Copyright © 2013. All Rights Reserved.