org.gcube.vremanagement.softwaregateway.impl.repositorymanager
Class RepositoryManager
java.lang.Object
org.gcube.vremanagement.softwaregateway.impl.repositorymanager.RepositoryManager
- Direct Known Subclasses:
- NexusCache, NexusRepositoryManager
public abstract class RepositoryManager
- extends Object
|
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 |
servers
public static String[] servers
SERVICE_ARCHIVE_IDENTIFIER
public static final String SERVICE_ARCHIVE_IDENTIFIER
- See Also:
- Constant Field Values
cacheEnabled
protected boolean cacheEnabled
RepositoryManager
public RepositoryManager(String[] mavenServerList)
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 Coordinatesextension: - 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 pomis -
- 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.