Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.net

Class ServerSocketFactory

java.lang.Object
|
+--javax.net.ServerSocketFactory


public abstract class ServerSocketFactory

extends java.lang.Object

A factory for server sockets. The purpose of this class is to serve as the superclass of server socket factories that produce server sockets of a particular type, such as Secure Socket Layer (SSL) server sockets.

Author:

Constructor Summary

ServerSocketFactory()

Default 0-argument constructor.

Method Summary

ServerSocketcreateServerSocket()

Create an unbound server socket.
ServerSocketcreateServerSocket(int port)

Create a server socket bound to the given port.
ServerSocketcreateServerSocket(int port, int backlog)

ServerSocketcreateServerSocket(int port, int backlog, InetAddress bindAddress)

static synchronized javax.net.ServerSocketFactorygetDefault()

Returns the default server socket factory.

Constructor Details

ServerSocketFactory

protected ServerSocketFactory()

Default 0-argument constructor.


Method Details

createServerSocket

public ServerSocket createServerSocket()

Create an unbound server socket.

Returns:

Throws:


createServerSocket

public ServerSocket createServerSocket(int port)

Create a server socket bound to the given port.

Parameters:

Returns:

Throws:


createServerSocket

public ServerSocket createServerSocket(int port, int backlog)

Parameters:


createServerSocket

public ServerSocket createServerSocket(int port, int backlog, InetAddress bindAddress)

Parameters:


getDefault

public static synchronized ServerSocketFactory getDefault()

Returns the default server socket factory. The type of factory returned may depend upon the installation.

Returns: