com.zeroturnaround.liverebel.api
Interface Upload

All Known Implementing Classes:
UploadImpl

public interface Upload

Holds the configuration of the upload.

Author:
Igor Bljahhin

Method Summary
 UploadInfo execute()
          Uploads new version of an application.
 Upload setApplicationId(String applicationId)
          Overrides the application id.
 Upload setBaseArchive(File file)
          Set the file on which the diff will be based.
 Upload setBaseVersionId(String versionId)
          Set the version on which the diff will be based.
 Upload setFull(boolean full)
          Enables full upload, otherwise if base version or base archive is set, only differencies will be uploaded
 Upload setVersionId(String versionId)
          Override the version id.
 

Method Detail

setApplicationId

Upload setApplicationId(String applicationId)
Overrides the application id.

Parameters:
applicationId - application identificator
Returns:
an object for configuring the upload

setVersionId

Upload setVersionId(String versionId)
Override the version id.

Parameters:
versionId - version identificator
Returns:
an object for configuring the upload

setBaseArchive

Upload setBaseArchive(File file)
Set the file on which the diff will be based.

Parameters:
file - file on which this diff is based
Returns:
an object for configuring the upload

setBaseVersionId

Upload setBaseVersionId(String versionId)
Set the version on which the diff will be based.

Parameters:
versionId - version on which this diff is based
Returns:
an object for configuring the upload

setFull

Upload setFull(boolean full)
Enables full upload, otherwise if base version or base archive is set, only differencies will be uploaded

Parameters:
full - send full archive
Returns:
an object for configuring the upload

execute

UploadInfo execute()
                   throws DuplicationException,
                          IOException
Uploads new version of an application.

Returns:
uploaded application version
Throws:
DuplicationException - if the given version already exists on the server
IOException


Copyright © 2013. All Rights Reserved.