org.mockftpserver.core.socket
Interface ServerSocketFactory

All Known Implementing Classes:
DefaultServerSocketFactory

public interface ServerSocketFactory

Interface for factory that creates new ServerSocket instances. Using this abstraction enables unit testing.

Version:
$Revision: 8 $ - $Date: 2007-12-18 22:42:32 -0500 (Tue, 18 Dec 2007) $
Author:
Chris Mair

Method Summary
 ServerSocket createServerSocket(int port)
          Create a new ServerSocket for the specified port
 

Method Detail

createServerSocket

ServerSocket createServerSocket(int port)
                                throws IOException
Create a new ServerSocket for the specified port

Parameters:
port - - the port
Returns:
a new ServerSocket
Throws:
IOException


Copyright © 2014. All rights reserved.