Package httpserver.net
Class ConnectionListener
java.lang.Object
httpserver.net.ConnectionListener
- Direct Known Subclasses:
HttpServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final InetAddressprotected final List<Connection>protected final booleanprotected final Executorprotected final ConnectionHandlerprotected final intprotected booleanprotected ServerSocket -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionListener(int port, InetAddress bindAddress, boolean daemon, int backlog, Executor executor, ConnectionHandler handler) -
Method Summary
-
Field Details
-
backlog
protected final int backlog -
handler
-
port
protected final int port -
bindAddress
-
daemon
protected final boolean daemon -
executor
-
running
protected boolean running -
serverSocket
-
connections
-
-
Constructor Details
-
ConnectionListener
protected ConnectionListener(int port, InetAddress bindAddress, boolean daemon, int backlog, Executor executor, ConnectionHandler handler)
-
-
Method Details
-
start
- Throws:
IOException
-
stop
- Throws:
IOException
-