this(servlet, new ServerSocket(port));
}
@Override
protected void handleRequest(Request r) throws IOException {
ServerRequest request = r.getServer().readRequest();
HttpServletRequestImpl sreq = new HttpServletRequestImpl(request);
HttpServletResponseImpl sres = new HttpServletResponseImpl();
sres.setHeader(MessageHeader.FN_SERVER, "ServletServer_" + servlet.getClass().getSimpleName());
if (ss != null) {
sreq.serverSocket(ss);