Name
ServerSocketFactory
Synopsis
This abstract class defines a factory
API for creating server socket objects. Use the static
getDefault( )
method to obtain a default
ServerSocketFactory object that is suitable for
creating regular java.net.ServerSocket sockets.
Once you have a ServerSocketFactory object, call
one of the createServerSocket( ) methods to create
a new socket and optionally bind it to a local port and specify the
allowed backlog of queued connections. See
javax.net.ssl.SSLServerSocketFactory for a socket
factory that can create secure
javax.net.ssl.SSLServerSocket objects.
public abstract class ServerSocketFactory { // Protected Constructors protected ServerSocketFactory( ); // Public Class Methods public static ServerSocketFactory getDefault( ); // Public Instance Methods public java.net.ServerSocket createServerSocket( ) throws java.io.IOException; public abstract java.net.ServerSocket createServerSocket(int port) throws java.io.IOException; public abstract java.net.ServerSocket createServerSocket(int port, int backlog) throws java.io.IOException; public abstract java.net.ServerSocket createServerSocket(int port, int backlog, java.net.InetAddress ifAddress) throws java.io.IOException; }
Subclasses
javax.net.ssl.SSLServerSocketFactory
Returned By
javax.net.ssl.SSLServerSocketFactory.getDefault( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access