public class DefaultServerSocketFactory extends java.lang.Object implements ServerSocketFactory
| Constructor and Description | 
|---|
| DefaultServerSocketFactory(AbstractEndpoint<?> endpoint) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.net.Socket | acceptSocket(java.net.ServerSocket socket)Wrapper function for accept(). | 
| java.net.ServerSocket | createSocket(int port)Returns a server socket which uses all network interfaces on the host,
and is bound to a the specified port. | 
| java.net.ServerSocket | createSocket(int port,
int backlog)Returns a server socket which uses all network interfaces on the host, is
bound to a the specified port, and uses the specified connection backlog. | 
| java.net.ServerSocket | createSocket(int port,
int backlog,
java.net.InetAddress ifAddress)Returns a server socket which uses only the specified network interface
on the local host, is bound to a the specified port, and uses the
specified connection backlog. | 
| void | handshake(java.net.Socket sock)Triggers the SSL handshake. | 
public DefaultServerSocketFactory(AbstractEndpoint<?> endpoint)
endpoint - Unused in this implementation.public java.net.ServerSocket createSocket(int port)
                                   throws java.io.IOException
ServerSocketFactorycreateSocket in interface ServerSocketFactoryport - the port to listen tojava.io.IOException - for networking errorspublic java.net.ServerSocket createSocket(int port,
                                 int backlog)
                                   throws java.io.IOException
ServerSocketFactorycreateSocket in interface ServerSocketFactoryport - the port to listen tobacklog - how many connections are queuedjava.io.IOException - for networking errorspublic java.net.ServerSocket createSocket(int port,
                                 int backlog,
                                 java.net.InetAddress ifAddress)
                                   throws java.io.IOException
ServerSocketFactorycreateSocket in interface ServerSocketFactoryport - the port to listen tobacklog - how many connections are queuedifAddress - the network interface address to usejava.io.IOException - for networking errorspublic java.net.Socket acceptSocket(java.net.ServerSocket socket)
                             throws java.io.IOException
ServerSocketFactoryacceptSocket in interface ServerSocketFactoryjava.io.IOExceptionpublic void handshake(java.net.Socket sock)
               throws java.io.IOException
ServerSocketFactoryhandshake in interface ServerSocketFactoryjava.io.IOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.