Class SftpTransport.Request
- java.lang.Object
-
- com.openindex.openestate.tool.agency.export.AbstractTransportRequest<SftpTransport>
-
- com.openindex.openestate.tool.agency.export.SftpTransport.Request
-
- Enclosing class:
- SftpTransport
public static class SftpTransport.Request extends AbstractTransportRequest<SftpTransport>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.agency.export.AbstractTransportRequest
AbstractTransportRequest.TransferException
-
-
Constructor Summary
Constructors Constructor Description Request(SftpTransport transport, File exportFile)
Request(SftpTransport transport, File exportFile, String stampFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractTransportRequest
getTransport
-
-
-
-
Constructor Detail
-
Request
public Request(SftpTransport transport, File exportFile)
-
Request
public Request(SftpTransport transport, File exportFile, String stampFileName)
-
-
Method Detail
-
doConnect
protected SftpClient doConnect(ExportContext context) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
-
doDisconnect
protected void doDisconnect(SftpClient client)
-
doReconnect
protected final SftpClient doReconnect(String path) throws IOException, SshUtils.AuthenticationFailedException, SshUtils.ConnectionFailedException
-
doSend
protected void doSend(File srcFile, String destPath, int retryCount, ImmoToolTask.Callback callback) throws SftpTransport.TransferFailedException, CancellationException
-
doTransportFinish
protected void doTransportFinish(SftpClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
- Throws:
IOException
CancellationException
-
doTransportInit
protected void doTransportInit(SftpClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
- Throws:
IOException
CancellationException
-
getChildRequests
public AbstractTransportRequest[] getChildRequests()
- Specified by:
getChildRequests
in classAbstractTransportRequest<SftpTransport>
-
getCurrentClient
protected final SftpClient getCurrentClient()
-
getStampFileName
public final String getStampFileName()
-
getTitle
public String getTitle()
- Specified by:
getTitle
in classAbstractTransportRequest<SftpTransport>
-
send
public void send(ExportContext context, ImmoToolTask.Callback callback) throws AbstractTransportRequest.TransferException
- Specified by:
send
in classAbstractTransportRequest<SftpTransport>
- Throws:
AbstractTransportRequest.TransferException
-
-