com.myjavaworld.ftp
Class ExplicitSSLControlConnection

java.lang.Object
  extended by com.myjavaworld.ftp.ControlConnection
      extended by com.myjavaworld.ftp.ExplicitSSLControlConnection
All Implemented Interfaces:
FTPConstants

public class ExplicitSSLControlConnection
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

Field Summary
 
Fields inherited from class com.myjavaworld.ftp.ControlConnection
client, listenerList, reader, socket, writer
 
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
 
Constructor Summary
ExplicitSSLControlConnection(FTPClient client)
          Creates an instance of ExplicitSSLControlConnection.
 
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
 

Constructor Detail

ExplicitSSLControlConnection

public ExplicitSSLControlConnection(FTPClient client)
Creates an instance of ExplicitSSLControlConnection.

Parameters:
client -
Method Detail

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.