public abstract class Transferer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Client |
client |
protected boolean |
prepared |
protected Source |
source |
| Modifier | Constructor and Description |
|---|---|
protected |
Transferer(Client client) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSource() |
protected void |
clean() |
protected TransferResult |
doTheTransfer(org.gcube.data.transfer.model.TransferRequest request) |
Transferer |
fromURL(URL sourceURL) |
org.gcube.data.transfer.model.TransferCapabilities |
getDestinationCapabilities() |
Transferer |
localFile(File f) |
Transferer |
localFile(String path) |
protected void |
prepare() |
protected abstract org.gcube.data.transfer.model.TransferRequest |
prepareRequest() |
Transferer |
storageFileId(String fileId) |
TransferResult |
transfer() |
protected Client client
protected Source source
protected boolean prepared
protected Transferer(Client client)
public Transferer localFile(File f) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer localFile(String path) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer storageFileId(String fileId) throws InvalidSourceException
InvalidSourceExceptionpublic Transferer fromURL(URL sourceURL) throws InvalidSourceException
InvalidSourceExceptionpublic TransferResult transfer() throws SourceNotSetException, InvalidSourceException, FailedTransferException, InitializationException
protected TransferResult doTheTransfer(org.gcube.data.transfer.model.TransferRequest request) throws FailedTransferException
FailedTransferExceptionprotected void checkSource()
throws SourceNotSetException,
InvalidSourceException
protected abstract org.gcube.data.transfer.model.TransferRequest prepareRequest()
throws InitializationException
InitializationExceptionprotected void prepare()
throws InitializationException
InitializationExceptionprotected void clean()
public org.gcube.data.transfer.model.TransferCapabilities getDestinationCapabilities()
Copyright © 2016. All Rights Reserved.