public static class SftpTransport.Request extends AbstractTransportRequest<SftpTransport>
AbstractTransportRequest.TransferException
Constructor and Description |
---|
SftpTransport.Request(SftpTransport transport,
File exportFile) |
SftpTransport.Request(SftpTransport transport,
File exportFile,
String stampFileName) |
Modifier and Type | Method and Description |
---|---|
protected SftpClient |
doConnect(ExportContext context) |
protected void |
doDisconnect(SftpClient client) |
protected SftpClient |
doReconnect(String path) |
protected void |
doSend(File srcFile,
String destPath,
int retryCount,
ImmoToolTask.Callback callback) |
protected void |
doTransportFinish(SftpClient client,
File exportFile,
ExportContext context,
ImmoToolTask.Callback callback) |
protected void |
doTransportInit(SftpClient client,
File exportFile,
ExportContext context,
ImmoToolTask.Callback callback) |
AbstractTransportRequest[] |
getChildRequests() |
protected SftpClient |
getCurrentClient() |
String |
getStampFileName() |
String |
getTitle() |
void |
send(ExportContext context,
ImmoToolTask.Callback callback) |
buildFileList, getTransport
public SftpTransport.Request(SftpTransport transport, File exportFile)
public SftpTransport.Request(SftpTransport transport, File exportFile, String stampFileName)
protected SftpClient doConnect(ExportContext context) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
protected void doDisconnect(SftpClient client)
protected final SftpClient doReconnect(String path) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
protected void doSend(File srcFile, String destPath, int retryCount, ImmoToolTask.Callback callback) throws SftpTransport.TransferFailedException, CancellationException
protected void doTransportFinish(SftpClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
IOException
CancellationException
protected void doTransportInit(SftpClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
IOException
CancellationException
public AbstractTransportRequest[] getChildRequests()
getChildRequests
in class AbstractTransportRequest<SftpTransport>
protected final SftpClient getCurrentClient()
public final String getStampFileName()
public String getTitle()
getTitle
in class AbstractTransportRequest<SftpTransport>
public void send(ExportContext context, ImmoToolTask.Callback callback) throws AbstractTransportRequest.TransferException
send
in class AbstractTransportRequest<SftpTransport>
AbstractTransportRequest.TransferException
Copyright © 2015 OpenEstate. All rights reserved.