Package com.ibm.di.server
Class ServerSocketFactoryEX
- java.lang.Object
-
- javax.net.ServerSocketFactory
-
- com.ibm.di.server.ServerSocketFactoryEX
-
public class ServerSocketFactoryEX extends javax.net.ServerSocketFactory
This class provides methods for getting bothjava.net.ServerSocket
andjavax.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
Constructors Constructor Description ServerSocketFactoryEX(BindAddressPolicy aBindAddrPolicy, boolean isSSLon)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.ServerSocket
createServerSocket(int port)
Creates Server Socket on the specified port.java.net.ServerSocket
createServerSocket(int port, int backlog)
Creates Server Socket on the specified port and backlogjava.net.ServerSocket
createServerSocket(int port, int backlog, java.net.InetAddress ifAddress)
Creates Server Socket on the specified port, backlog and InetAddress.
-
-
-
Constructor Detail
-
ServerSocketFactoryEX
public ServerSocketFactoryEX(BindAddressPolicy aBindAddrPolicy, boolean isSSLon)
Constructor. Takes theBindAddressPolicy
object where bind addresses will be obtained from. TheisSSLon
parameter determines if this class wraps ajavax.net.ssl.SSLServerSocketFactory
orjavax.net.ServerSocketFactory
. If set toTrue
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 java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
Creates Server Socket on the specified port.- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- The port on which the Server Socket is created- Throws:
java.io.IOException
-
createServerSocket
public java.net.ServerSocket createServerSocket(int port, int backlog) throws java.io.IOException
Creates Server Socket on the specified port and backlog- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- The port on which the Server Socket is createdbacklog
- how many connections are queued- Throws:
java.io.IOException
-
createServerSocket
public java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException
Creates Server Socket on the specified port, backlog and InetAddress.- Specified by:
createServerSocket
in classjavax.net.ServerSocketFactory
- Parameters:
port
- - the port to listen tobacklog
- - how many connections are queuedifAddress
- - the network interface address to use- Throws:
java.io.IOException
-
-