org.apache.ftpserver.ftplet
Interface DataConnectionFactory


public interface DataConnectionFactory

Author:
Apache MINA Project

Method Summary
 void closeDataConnection()
          Close data socket.
 boolean isSecure()
          Indicates whether the data socket created by this factory will be secure that is, running over SSL/TLS.
 DataConnection openConnection()
          Open an active data connection
 

Method Detail

openConnection

DataConnection openConnection()
                              throws java.lang.Exception
Open an active data connection

Returns:
The open data connection
Throws:
java.lang.Exception

isSecure

boolean isSecure()
Indicates whether the data socket created by this factory will be secure that is, running over SSL/TLS.

Returns:
true if the data socket will be secured

closeDataConnection

void closeDataConnection()
Close data socket. If no open data connection exists, this will silently ignore the call.



Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.