com.ibm.di.server
Class ServerSocketFactoryEX

java.lang.Object
  extended by javax.net.ServerSocketFactory
      extended by com.ibm.di.server.ServerSocketFactoryEX

public class ServerSocketFactoryEX
extends ServerSocketFactory

This class provides methods for getting both java.net.ServerSocket and javax.net.ssl.SSLServerSocket objects. This class is for internal use only and you should not rely on it for other purpose.

Since:
7.1

Constructor Summary
ServerSocketFactoryEX(BindAddressPolicy aBindAddrPolicy, boolean isSSLon)
          Constructor.
 
Method Summary
 ServerSocket createServerSocket(int port)
          Creates Server Socket on the specified port.
 ServerSocket createServerSocket(int port, int backlog)
          Creates Server Socket on the specified port and backlog
 ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress)
          Creates Server Socket on the specified port, backlog and InetAddress.
 
Methods inherited from class javax.net.ServerSocketFactory
createServerSocket, getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSocketFactoryEX

public ServerSocketFactoryEX(BindAddressPolicy aBindAddrPolicy,
                             boolean isSSLon)
Constructor. Takes the BindAddressPolicy object where bind addresses will be obtained from. The isSSLon parameter determines if this class wraps a javax.net.ssl.SSLServerSocketFactory or javax.net.ServerSocketFactory. If set to True when some of the create methods is called the SSLServerSocket is returned.

Parameters:
aBindAddrPolicy - Object where bind addresses are obtained from.
isSSLon - Determines if SSL or non-SSL Server Socket Factory is wrapped.
Method Detail

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Creates Server Socket on the specified port.

Specified by:
createServerSocket in class ServerSocketFactory
Parameters:
port - The port on which the Server Socket is created
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog)
                                throws IOException
Creates Server Socket on the specified port and backlog

Specified by:
createServerSocket in class ServerSocketFactory
Parameters:
port - The port on which the Server Socket is created
backlog - how many connections are queued
Throws:
IOException

createServerSocket

public ServerSocket createServerSocket(int port,
                                       int backlog,
                                       InetAddress ifAddress)
                                throws IOException
Creates Server Socket on the specified port, backlog and InetAddress.

Specified by:
createServerSocket in class ServerSocketFactory
Parameters:
port - - the port to listen to
backlog - - how many connections are queued
ifAddress - - the network interface address to use
Throws:
IOException