|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.ServerSocketFactory
com.ibm.di.server.ServerSocketFactoryEX
public class ServerSocketFactoryEX
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.
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 |
---|
public ServerSocketFactoryEX(BindAddressPolicy aBindAddrPolicy, boolean isSSLon)
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.
aBindAddrPolicy
- Object where bind addresses are obtained from.isSSLon
- Determines if SSL or non-SSL Server Socket Factory is wrapped.Method Detail |
---|
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in class ServerSocketFactory
port
- The port on which the Server Socket is created
IOException
public ServerSocket createServerSocket(int port, int backlog) throws IOException
createServerSocket
in class ServerSocketFactory
port
- The port on which the Server Socket is createdbacklog
- how many connections are queued
IOException
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException
createServerSocket
in class ServerSocketFactory
port
- - the port to listen tobacklog
- - how many connections are queuedifAddress
- - the network interface address to use
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |