Class FtpTransport.Request
- java.lang.Object
-
- com.openindex.openestate.tool.agency.export.AbstractTransportRequest<FtpTransport>
-
- com.openindex.openestate.tool.agency.export.FtpTransport.Request
-
- Enclosing class:
- FtpTransport
public static class FtpTransport.Request extends AbstractTransportRequest<FtpTransport>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.agency.export.AbstractTransportRequest
AbstractTransportRequest.TransferException
-
-
Constructor Summary
Constructors Constructor Description Request(FtpTransport transport, File exportFile)Request(FtpTransport transport, File exportFile, String stampFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.commons.net.ftp.FTPClientdoConnect(ExportContext context)protected voiddoDisconnect(org.apache.commons.net.ftp.FTPClient client)protected org.apache.commons.net.ftp.FTPClientdoReconnect(String path)protected voiddoSend(File srcFile, String destPath, int retryCount, ImmoToolTask.Callback callback)protected voiddoTransportFinish(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback)protected voiddoTransportInit(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback)AbstractTransportRequest[]getChildRequests()protected org.apache.commons.net.ftp.FTPClientgetCurrentFtpClient()StringgetStampFileName()StringgetTitle()voidsend(ExportContext context, ImmoToolTask.Callback callback)-
Methods inherited from class com.openindex.openestate.tool.agency.export.AbstractTransportRequest
getTransport
-
-
-
-
Constructor Detail
-
Request
public Request(FtpTransport transport, File exportFile)
-
Request
public Request(FtpTransport transport, File exportFile, String stampFileName)
-
-
Method Detail
-
doConnect
protected org.apache.commons.net.ftp.FTPClient doConnect(ExportContext context) throws IOException, FtpTransport.AuthenticationFailedException
-
doDisconnect
protected void doDisconnect(org.apache.commons.net.ftp.FTPClient client)
-
doReconnect
protected final org.apache.commons.net.ftp.FTPClient doReconnect(String path) throws IOException, FtpTransport.AuthenticationFailedException
-
doSend
protected void doSend(File srcFile, String destPath, int retryCount, ImmoToolTask.Callback callback) throws FtpTransport.CommunicationFailedException, FtpTransport.TransferFailedException, FtpTransport.AuthenticationFailedException, CancellationException
-
doTransportFinish
protected void doTransportFinish(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException- Throws:
IOExceptionCancellationException
-
doTransportInit
protected void doTransportInit(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException- Throws:
IOExceptionCancellationException
-
getChildRequests
public AbstractTransportRequest[] getChildRequests()
- Specified by:
getChildRequestsin classAbstractTransportRequest<FtpTransport>
-
getCurrentFtpClient
protected final org.apache.commons.net.ftp.FTPClient getCurrentFtpClient()
-
getStampFileName
public final String getStampFileName()
-
getTitle
public String getTitle()
- Specified by:
getTitlein classAbstractTransportRequest<FtpTransport>
-
send
public void send(ExportContext context, ImmoToolTask.Callback callback) throws AbstractTransportRequest.TransferException
- Specified by:
sendin classAbstractTransportRequest<FtpTransport>- Throws:
AbstractTransportRequest.TransferException
-
-