org.apache.ftpserver.interfaces
Interface SocketFactory


public interface SocketFactory

This interface is responsible to create appropriate server socket.


Method Summary
 java.net.ServerSocket createServerSocket()
          Create the server socket.
 int getPort()
          Get server port.
 java.net.InetAddress getServerAddress()
          Get server address.
 SslConfiguration getSSL()
          Get SSL component.
 

Method Detail

createServerSocket

java.net.ServerSocket createServerSocket()
                                         throws java.lang.Exception
Create the server socket.

Throws:
java.lang.Exception

getServerAddress

java.net.InetAddress getServerAddress()
Get server address.

Returns:
InetAddress obtained from host address from SocketFactory configuration, or null if not specified.

getPort

int getPort()
Get server port.


getSSL

SslConfiguration getSSL()
Get SSL component.



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