41 import java.nio.channels.*;
42 import java.util.concurrent.*;
55 BP(
int port,
int backlog,
boolean secure)
throws Exception {
56 super(port, backlog, secure);
59 void runServer() throws Exception {
61 ExecutorService xec = Executors.newFixedThreadPool(
66 SocketChannel sc = ssc.accept();
68 ChannelIO cio = (sslContext !=
null ?
69 ChannelIOSecure.getInstance(
70 sc,
true , sslContext) :
71 ChannelIO.getInstance(
74 RequestServicer svc =
new RequestServicer(cio);