Class ServerSocketFactoryEX


  • public class ServerSocketFactoryEX
    extends javax.net.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
    • 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 backlog
      java.net.ServerSocket createServerSocket​(int port, int backlog, java.net.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 java.net.ServerSocket createServerSocket​(int port)
                                                 throws java.io.IOException
        Creates Server Socket on the specified port.
        Specified by:
        createServerSocket in class javax.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 class javax.net.ServerSocketFactory
        Parameters:
        port - The port on which the Server Socket is created
        backlog - 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 class javax.net.ServerSocketFactory
        Parameters:
        port - - the port to listen to
        backlog - - how many connections are queued
        ifAddress - - the network interface address to use
        Throws:
        java.io.IOException