|
Apache Tomcat 7.0.29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.net.DefaultServerSocketFactory
public class DefaultServerSocketFactory
Default server socket factory. Doesn't do much except give us plain old server sockets.
| Constructor Summary | |
|---|---|
DefaultServerSocketFactory(AbstractEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
Socket |
acceptSocket(ServerSocket socket)
Wrapper function for accept(). |
ServerSocket |
createSocket(int port)
Returns a server socket which uses all network interfaces on the host, and is bound to a the specified port. |
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. |
ServerSocket |
createSocket(int port,
int backlog,
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(Socket sock)
Triggers the SSL handshake. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultServerSocketFactory(AbstractEndpoint endpoint)
endpoint - Unused in this implementation.| Method Detail |
|---|
public ServerSocket createSocket(int port)
throws IOException
ServerSocketFactory
createSocket in interface ServerSocketFactoryport - the port to listen to
IOException - for networking errors
public ServerSocket createSocket(int port,
int backlog)
throws IOException
ServerSocketFactory
createSocket in interface ServerSocketFactoryport - the port to listen tobacklog - how many connections are queued
IOException - for networking errors
public ServerSocket createSocket(int port,
int backlog,
InetAddress ifAddress)
throws IOException
ServerSocketFactory
createSocket in interface ServerSocketFactoryport - the port to listen tobacklog - how many connections are queuedifAddress - the network interface address to use
IOException - for networking errors
public Socket acceptSocket(ServerSocket socket)
throws IOException
ServerSocketFactory
acceptSocket in interface ServerSocketFactoryIOException
public void handshake(Socket sock)
throws IOException
ServerSocketFactory
handshake in interface ServerSocketFactoryIOException
|
Apache Tomcat 7.0.29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||