ServerSocket.setSocketFactory
Class Overview | Class Members |
This Package |
All Packages
public static synchronized void setSocketFactory( SocketImplFactory fac ) throws IOException
Parameters
- fac
- the desired factory.
Description
Sets the server socket implementation factory for the
application. The factory can be specified only once.
When an application creates a new server socket, the socket
implementation factory's createSocketImpl method is
called to create the actual socket implementation.
Exceptions
IOException
if an I/O error occurs when setting the
socket factory.
Exceptions
SocketException
if the factory has already been defined.
See Also
createSocketImpl