ServerSocketFactory

public abstract class ServerSocketFactory extends Object
Known Direct Subclasses

This class creates server sockets. It may be subclassed by other factories, which create particular types of server sockets. This provides a general framework for the addition of public socket-level functionality. It is the server side analogue of a socket factory, and similarly provides a way to capture a variety of policies related to the sockets being constructed.

Like socket factories, server Socket factory instances have methods used to create sockets. There is also an environment specific default server socket factory; frameworks will often use their own customized factory.

See Also

Protected Constructor Summary

ServerSocketFactory()
Creates a server socket factory.

Public Method Summary

abstract ServerSocket
createServerSocket(int port)
Returns a server socket bound to the specified port.
ServerSocket
createServerSocket()
Returns an unbound server socket.
abstract ServerSocket
createServerSocket(int port, int backlog, InetAddress ifAddress)
Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
abstract ServerSocket
createServerSocket(int port, int backlog)
Returns a server socket bound to the specified port, and uses the specified connection backlog.
static ServerSocketFactory
getDefault()
Returns a copy of the environment's default socket factory.

Inherited Method Summary