com.myjavaworld.ftp
Class ImplicitSSLControlConnection
java.lang.Object
com.myjavaworld.ftp.ControlConnection
com.myjavaworld.ftp.ImplicitSSLControlConnection
- All Implemented Interfaces:
- FTPConstants
public class ImplicitSSLControlConnection
- extends ControlConnection
- implements FTPConstants
This class represents a Control Connection as specified in the FTP protocol
specification. For more details refer to RFC 959.
- Version:
- 2.0
- Author:
- Sai Pullabhotla, psai [at] jMethods [dot] com
Fields inherited from interface com.myjavaworld.ftp.FTPConstants |
DEFAULT_BUFFER_SIZE, DEFAULT_IMPLICIT_SSL_PORT, DEFAULT_MODE, DEFAULT_PORT, DEFAULT_STRUCTURE, DEFAULT_TIMEOUT, DEFAULT_TYPE, EOL, MODE_BLOCK, MODE_COMPRESSED, MODE_STREAM, STRUCTURE_FILE, STRUCTURE_PAGE, STRUCTURE_RECORD, TYPE_ASCII, TYPE_BINARY, TYPE_EBCDIC, TYPE_IMAGE, TYPE_LOCAL, USE_EXPLICIT_SSL, USE_IMPLICIT_SSL, USE_NO_SSL, USE_SSL_IF_AVAILABLE |
Method Summary |
void |
connect(String host,
int port)
Connects to the specified remote host on the specified port number. |
Methods inherited from class com.myjavaworld.ftp.ControlConnection |
close, connect, executeCommand, fireCommandSent, fireReplyReceived, getLocalAddress, getLocalHost, getLocalIPAddress, getLocalPort, getRemoteAddress, getRemoteHost, getRemoteIPAddress, getRemotePort, getReply, getSSLSession, isSecured, sendCommand, stderr, stdout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplicitSSLControlConnection
public ImplicitSSLControlConnection(FTPClient client)
- Creates an instance of
ImplicitSSLControlConnection
.
- Parameters:
client
- FTP client that created this control connection.
connect
public void connect(String host,
int port)
throws ConnectionException,
FTPException
- Connects to the specified remote host on the specified port number.
- Overrides:
connect
in class ControlConnection
- Parameters:
host
- Host name or IP address of the remote host.port
- Port number to connect to.
- Throws:
ConnectionException
- If unable to connect to the specified host.
FTPException
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.