public interface Uploader extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addArtifact(File file,
String filename)
Gathers a single file for upload with the given filename.
|
Set<UploaderResult.ArtifactResult> |
getUploadedArtifacts()
Returns all artifacts uploaded to the server.
|
void |
performUpload()
Uploads all gathered artifacts to the server.
|
void addArtifact(File file, String filename)
file
- the local file to be uploaded.filename
- the name for the uploaded file.void performUpload() throws IOException
IOException
- if performing the upload failsSet<UploaderResult.ArtifactResult> getUploadedArtifacts()
Copyright © 2016–2018. All rights reserved.