Java org.apache.commons.net.ftp FTPSClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.ftp FTPSClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.ftp FTPSClient.

The text is from its open source code.

Subclass

org.apache.commons.net.ftp.FTPSClient has subclasses.
Click this link to see all its subclasses.

Constructor

FTPSClient(String protocol, boolean isImplicit)
Constructor for FTPSClient allowing specification of protocol and security mode.
FTPSClient(boolean isImplicit, SSLContext context)
Constructor for FTPSClient, using #DEFAULT_PROTOCOL - i.e.
FTPSClient(boolean isImplicit)
Constructor for FTPSClient, using #DEFAULT_PROTOCOL - i.e.
FTPSClient(String protocol)
Constructor for FTPSClient, using explict mode, calls #FTPSClient(String,boolean) .
FTPSClient(SSLContext context)
Constructor for FTPSClient, using #DEFAULT_PROTOCOL - i.e.
FTPSClient()
Constructor for FTPSClient, calls #FTPSClient(String,boolean) .

Method

voidaddProtocolCommandListener(ProtocolCommandListener listener)
Adds a ProtocolCommandListener.
booleanchangeWorkingDirectory(String pathname)
Change the current working directory of the FTP session.
booleancompletePendingCommand()
There are a few FTPClient methods that do not complete the entire sequence of FTP commands to complete a transaction.
voidconnect(InetAddress host)
Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port.
voidconnect(InetAddress host, int port)
Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port.
booleandeleteFile(String pathname)
Deletes a file on the FTP server.
voiddisconnect()
Closes the connection to the FTP server and restores connection parameters to the default values.
voidenterLocalActiveMode()
Set the current data connection mode to ACTIVE_LOCAL_DATA_CONNECTION_MODE.
voidenterLocalPassiveMode()
Set the current data connection mode to PASSIVE_LOCAL_DATA_CONNECTION_MODE .
voidexecPBSZ(long pbsz)
PBSZ command.
voidexecPROT(String prot)
PROT command.
intgetConnectTimeout()
Get the underlying socket connection timeout.
String[]getEnabledCipherSuites()
Returns the names of the cipher suites which could be enabled for use on this connection.
String[]getEnabledProtocols()
Returns the names of the protocol versions which are currently enabled for use on this connection.
booleangetNeedClientAuth()
Returns true if the socket will require client authentication.
intgetReplyCode()
Returns the integer value of the reply code of the last FTP reply.
StringgetReplyString()
Returns the entire text of the last FTP server response exactly as it was received, including all end of line markers in NETASCII format.
StringgetSystemName()
booleangetUseClientMode()
Returns true if the socket is set to use client mode in its first handshake.
booleangetWantClientAuth()
Returns true if the socket will request client authentication.
FTPListParseEngineinitiateListParsing()
Using the default autodetect mechanism, initialize an FTPListParseEngine object containing a raw file information for the current working directory on the server This information is obtained through the LIST command.
booleanisConnected()
Returns true if the client is currently connected to a server.
FTPFile[]listFiles()
Using the default system autodetect mechanism, obtain a list of file information for the current working directory.
FTPFile[]listFiles(String pathname)
Using the default system autodetect mechanism, obtain a list of file information for the current working directory or for just a single file.
booleanlogin(String username, String password)
Login to the FTP server using the provided username and password.
booleanlogout()
Logout of the FTP server by sending the QUIT command.
booleanmakeDirectory(String pathname)
Creates a new subdirectory on the FTP server in the current directory (if a relative pathname is given) or where specified (if an absolute pathname is given).
booleanrename(String from, String to)
Renames a remote file.
booleanretrieveFile(String remote, OutputStream local)
Retrieves a named file from the server and writes it to the given OutputStream.
booleansendNoOp()
Sends a NOOP command to the FTP server.
voidsetAuthValue(String auth)
Set AUTH command use value.
voidsetBufferSize(int bufSize)
Set the internal buffer size for buffered data streams.
voidsetConnectTimeout(int connectTimeout)
Sets the connection timeout in milliseconds, which will be passed to the Socket object's connect() method.
voidsetControlKeepAliveTimeout(long controlIdle)
Set the time to wait between sending control connection keepalive messages when processing file upload or download.
voidsetDataTimeout(int timeout)
Sets the timeout in milliseconds to use when reading from the data connection.
voidsetEnabledCipherSuites(String[] cipherSuites)
Controls which particular cipher suites are enabled for use on this connection.
voidsetEnabledProtocols(String[] protocolVersions)
Controls which particular protocol versions are enabled for use on this connection.
voidsetEnabledSessionCreation(boolean isCreation)
Controls whether a new SSL session may be established by this socket.
booleansetFileTransferMode(int mode)
Sets the transfer mode.
booleansetFileType(int fileType)
Sets the file type to be transferred.
voidsetKeyManager(KeyManager keyManager)
Set a KeyManager to use
voidsetNeedClientAuth(boolean isNeedClientAuth)
Configures the socket to require client authentication.
voidsetServerSocketFactory(ServerSocketFactory factory)
Sets the ServerSocketFactory used by the SocketClient to open ServerSocket connections.
voidsetSocketFactory(SocketFactory factory)
Sets the SocketFactory used by the SocketClient to open socket connections.
voidsetSoTimeout(int timeout)
Set the timeout in milliseconds of a currently open connection.
voidsetTrustManager(TrustManager trustManager)
Override the default TrustManager to use; if set to null , the default TrustManager from the JVM will be used.
voidsetUseClientMode(boolean isClientMode)
Configures the socket to use client (or server) mode in its first handshake.
voidsetWantClientAuth(boolean isWantClientAuth)
Configures the socket to request client authentication, but only if such a request is appropriate to the cipher suite negotiated.
booleanstoreFile(String remote, InputStream local)
Stores a file on the server using the given name and taking input from the given InputStream.
OutputStreamstoreFileStream(String remote)
Returns an OutputStream through which data can be written to store a file on the server using the given name.