public class SecureDataFTPConnection
extends org.ftp4che.impl.SecureFTPConnection
AUTH_SSL_FTP_CONNECTION, AUTH_TLS_FTP_CONNECTION, BUSY, CONNECTED, CSL_2WAY_INDIRECT_CALL, CSL_DIRECT_CALL, CSL_INDIRECT_CALL, DISCONNECTED, ERROR, factory, FTP_CONNECTION, FXP_FILE, FXPING_FILE_ENDED, FXPING_FILE_STARTED, IDLE, IMPLICIT_SSL_FTP_CONNECTION, IMPLICIT_SSL_WITH_CRYPTED_DATA_FTP_CONNECTION, IMPLICIT_TLS_FTP_CONNECTION, IMPLICIT_TLS_WITH_CRYPTED_DATA_FTP_CONNECTION, listenerList, MAX_DOWNLOAD_BANDWIDTH, MAX_UPLOAD_BANDWIDTH, RECEIVING_FILE, RECEIVING_FILE_ENDED, RECEIVING_FILE_STARTED, SENDING_FILE, SENDING_FILE_ENDED, SENDING_FILE_STARTED, socketProvider, UNKNOWN
Constructor and Description |
---|
SecureDataFTPConnection(org.ftp4che.FTPConnection conn,
String password,
int timeout) |
Modifier and Type | Method and Description |
---|---|
List<org.ftp4che.util.ftpfile.FTPFile> |
getDirectoryListing(String directory)
Also sends a PROT P command for the implicit modes with crypted data.
|
protected void |
setDataProtIfImplicit()
Send a PROT P command if on implicit modes with crypted data.
|
void |
uploadFile(org.ftp4che.util.ftpfile.FTPFile fromFile,
org.ftp4che.util.ftpfile.FTPFile toFile)
Also sends a PROT P command for the implicit modes with crypted data.
|
void |
uploadStream(InputStream upStream,
org.ftp4che.util.ftpfile.FTPFile toFile)
Also sends a PROT P command for the implicit modes with crypted data.
|
addFTPStatusListener, changeDirectory, changeToParentDirectory, checkFeatures, checkSystem, deleteDirectory, deleteFile, disconnect, downloadDirectory, downloadFile, downloadFile, downloadStream, fireConnectionStatusChanged, fireReplyMessageArrived, fxpDirectory, fxpFile, getAccount, getAddress, getConnectionStatus, getConnectionStatusLock, getConnectionType, getCRC, getCRC, getDirectoryListing, getDownloadBandwidth, getFastDirectoryListing, getFastDirectoryListing, getFTPStatusListeners, getKeyManagers, getMD5, getMD5, getModificationTime, getPassword, getProxy, getSecureFXPType, getTimeout, getTrustManagers, getUploadBandwidth, getUser, getWorkDirectory, isCpsvSupport, isPassiveMode, isPretSupport, isSecuredFxp, isSscnSupport, isTryResume, makeDirectory, moveFile, noOperation, removeDirectory, removeDirectory, removeFTPStatusListener, renameFile, sendCommand, sendPassiveMode, sendPortCommand, sendSiteCommand, setAccount, setAddress, setClientName, setConnectionStatus, setConnectionStatus, setConnectionStatusLock, setConnectionType, setCpsvSupport, setDownloadBandwidth, setKeyManagers, setModificationTime, setPassiveMode, setPassword, setPretSupport, setProxy, setSecureFXPType, setSSCNFxp, setSscnSupport, setTimeout, setTransferType, setTrustManagers, setTryResume, setUploadBandwidth, setUser, uploadDirectory, uploadFile
public SecureDataFTPConnection(org.ftp4che.FTPConnection conn, String password, int timeout) throws org.ftp4che.exception.ConfigurationException
org.ftp4che.exception.ConfigurationException
public List<org.ftp4che.util.ftpfile.FTPFile> getDirectoryListing(String directory) throws IOException, org.ftp4che.exception.FtpWorkflowException, org.ftp4che.exception.FtpIOException
getDirectoryListing
in class org.ftp4che.FTPConnection
IOException
org.ftp4che.exception.FtpWorkflowException
org.ftp4che.exception.FtpIOException
public void uploadFile(org.ftp4che.util.ftpfile.FTPFile fromFile, org.ftp4che.util.ftpfile.FTPFile toFile) throws IOException, org.ftp4che.exception.FtpWorkflowException, org.ftp4che.exception.FtpIOException
uploadFile
in class org.ftp4che.FTPConnection
IOException
org.ftp4che.exception.FtpWorkflowException
org.ftp4che.exception.FtpIOException
public void uploadStream(InputStream upStream, org.ftp4che.util.ftpfile.FTPFile toFile) throws IOException, org.ftp4che.exception.FtpWorkflowException, org.ftp4che.exception.FtpIOException
uploadStream
in class org.ftp4che.FTPConnection
IOException
org.ftp4che.exception.FtpWorkflowException
org.ftp4che.exception.FtpIOException
protected void setDataProtIfImplicit() throws IOException
IOException
Copyright © 2018 Hitachi Vantara. All rights reserved.