APIdia Launch Partner
Top Constructors Methods
javax.net

pack-priv Class DefaultServerSocketFactory

Located in compilation unit of javax.net.ServerSocketFactory.

extends ServerSocketFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ServerSocket
createServerSocket()

Overrides javax.net.ServerSocketFactory.createServerSocket.

Returns an unbound server socket.

public ServerSocket
createServerSocket(int port)

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port.

public ServerSocket
createServerSocket(int port, int backlog)

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, and uses the specified connection backlog.

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

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, with a specified listen backlog and local IP.

Inherited from javax.net.ServerSocketFactory:
getDefault

Constructor Detail

DefaultServerSocketFactoryback to summary
pack-priv DefaultServerSocketFactory()

Method Detail

createServerSocketback to summary
public ServerSocket createServerSocket() throws IOException

Overrides javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.

Exceptions
IOException:
if the socket cannot be created
createServerSocketback to summary
public ServerSocket createServerSocket(int port) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

Exceptions
IOException:
for networking errors
createServerSocketback to summary
public ServerSocket createServerSocket(int port, int backlog) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

The backlog argument must be a positive value greater than 0. If the value passed if equal or less than 0, then the default value will be assumed.

Exceptions
IOException:
for networking errors
createServerSocketback to summary
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException

Implements abstract javax.net.ServerSocketFactory.createServerSocket.

Doc from javax.net.ServerSocketFactory.createServerSocket.

Returns a server socket bound to the specified port, with a specified listen backlog and local IP.

The ifAddress argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. If ifAddress is null, it will accept connections on all local addresses. The socket is configured with the socket options (such as accept timeout) given to this factory.

The backlog argument must be a positive value greater than 0. If the value passed if equal or less than 0, then the default value will be assumed.

Exceptions
IOException:
for networking errors