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.FTPClient
doConnect(ExportContext context)
protected void
doDisconnect(org.apache.commons.net.ftp.FTPClient client)
protected org.apache.commons.net.ftp.FTPClient
doReconnect(String path)
protected void
doSend(File srcFile, String destPath, int retryCount, ImmoToolTask.Callback callback)
protected void
doTransportFinish(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback)
protected void
doTransportInit(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback)
AbstractTransportRequest[]
getChildRequests()
protected org.apache.commons.net.ftp.FTPClient
getCurrentFtpClient()
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(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:
IOException
CancellationException
-
doTransportInit
protected void doTransportInit(org.apache.commons.net.ftp.FTPClient client, File exportFile, ExportContext context, ImmoToolTask.Callback callback) throws IOException, CancellationException
- Throws:
IOException
CancellationException
-
getChildRequests
public AbstractTransportRequest[] getChildRequests()
- Specified by:
getChildRequests
in classAbstractTransportRequest<FtpTransport>
-
getCurrentFtpClient
protected final org.apache.commons.net.ftp.FTPClient getCurrentFtpClient()
-
getStampFileName
public final String getStampFileName()
-
getTitle
public String getTitle()
- Specified by:
getTitle
in classAbstractTransportRequest<FtpTransport>
-
send
public void send(ExportContext context, ImmoToolTask.Callback callback) throws AbstractTransportRequest.TransferException
- Specified by:
send
in classAbstractTransportRequest<FtpTransport>
- Throws:
AbstractTransportRequest.TransferException
-
-