public abstract class BaseNexusRepository extends Object
Constructor and Description |
---|
BaseNexusRepository(String classifier) |
Modifier and Type | Method and Description |
---|---|
protected String |
createArtifactURL(NexusArtifactDto dto)
Creates the url to download the artifact.
|
protected URL |
createNexusUrl() |
String |
getClassifier() |
int |
getDelay() |
int |
getInitialDelay() |
String |
getNexusUrl() |
protected void |
indexNexus()
Runs the task to index nexus for new artifacts
|
void |
setClassifier(String classifier)
Classifier to index.
|
void |
setDelay(int delay)
Delay in seconds between scanning.
|
void |
setInitialDelay(int initialDelay)
Delay in seconds before the initial (first) scan.
|
void |
setLog(boolean log)
Sets whether to log errors and warnings to System.out.
|
void |
setNexusUrl(String nexusUrl)
The URL to the Nexus repository to query.
|
void |
start()
Starts the Nexus indexer.
|
void |
stop()
Stops the Nexus indexer.
|
public BaseNexusRepository(String classifier)
public void setLog(boolean log)
public String getNexusUrl()
public void setNexusUrl(String nexusUrl)
public int getInitialDelay()
public void setInitialDelay(int initialDelay)
public int getDelay()
public void setDelay(int delay)
public String getClassifier()
public void setClassifier(String classifier)
public void start()
public void stop()
protected URL createNexusUrl() throws MalformedURLException
MalformedURLException
protected String createArtifactURL(NexusArtifactDto dto)
dto
- the artifactApache Camel