|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.net.ServerSocketFactory
public abstract class ServerSocketFactory
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.
| Constructor Summary | |
|---|---|
protected |
ServerSocketFactory()
Default 0-argument constructor. |
| Method Summary | |
|---|---|
ServerSocket |
createServerSocket()
Create an unbound server socket. |
abstract ServerSocket |
createServerSocket(int port)
Create a server socket bound to the given port. |
abstract ServerSocket |
createServerSocket(int port,
int backlog)
|
abstract ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress)
|
static ServerSocketFactory |
getDefault()
Returns the default server socket factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ServerSocketFactory()
| Method Detail |
|---|
public static ServerSocketFactory getDefault()
public ServerSocket createServerSocket()
throws IOException
IOException - If a networking error occurs.
public abstract ServerSocket createServerSocket(int port)
throws IOException
port - The port to bind the server socket to.
IOException - If a networking error occurs.
public abstract ServerSocket createServerSocket(int port,
int backlog)
throws IOException
IOException
public abstract ServerSocket createServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||