Package com.ibm.di.server
Class ServerSocketFactoryEX
- java.lang.Object
-
- javax.net.ServerSocketFactory
-
- com.ibm.di.server.ServerSocketFactoryEX
-
public class ServerSocketFactoryEX extends javax.net.ServerSocketFactoryThis class provides methods for getting bothjava.net.ServerSocketandjavax.net.ssl.SSLServerSocketobjects. 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.ServerSocketcreateServerSocket(int port)Creates Server Socket on the specified port.java.net.ServerSocketcreateServerSocket(int port, int backlog)Creates Server Socket on the specified port and backlogjava.net.ServerSocketcreateServerSocket(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 theBindAddressPolicyobject where bind addresses will be obtained from. TheisSSLonparameter determines if this class wraps ajavax.net.ssl.SSLServerSocketFactoryorjavax.net.ServerSocketFactory. If set toTruewhen 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.IOExceptionCreates Server Socket on the specified port.- Specified by:
createServerSocketin 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.IOExceptionCreates Server Socket on the specified port and backlog- Specified by:
createServerSocketin 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.IOExceptionCreates Server Socket on the specified port, backlog and InetAddress.- Specified by:
createServerSocketin 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
-
-