org.apache.ftpserver.ftplet
Interface DataConnectionFactory

All Known Subinterfaces:
ServerDataConnectionFactory
All Known Implementing Classes:
IODataConnectionFactory

public interface DataConnectionFactory

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

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-2011 Apache Software Foundation. All Rights Reserved.