public interface MavenProxy
| Modifier and Type | Field and Description |
|---|---|
static String |
DOWNLOAD_TYPE |
static String |
UPLOAD_TYPE |
| Modifier and Type | Method and Description |
|---|---|
File |
download(String path)
Downloads a
File from the MavenProxy. |
void |
start() |
void |
stop() |
boolean |
upload(InputStream is,
String path)
Upload a
File to the MavenProxy. |
static final String UPLOAD_TYPE
static final String DOWNLOAD_TYPE
void start()
throws IOException
IOExceptionvoid stop()
File download(String path) throws InvalidMavenArtifactRequest
File from the MavenProxy.path - The path from which to download the File.InvalidMavenArtifactRequestboolean upload(InputStream is, String path) throws InvalidMavenArtifactRequest
File to the MavenProxy.is - The InputStream to upload.path - The upload path.InvalidMavenArtifactRequestCopyright © 2011–2014 Red Hat. All rights reserved.