public class ServletServer extends ThreadedHttpServer
ThreadedHttpServer.Requestss| Constructor and Description |
|---|
ServletServer(javax.servlet.http.HttpServlet servlet)
Constructs a new ServletServer.
|
ServletServer(javax.servlet.http.HttpServlet servlet,
int port)
Constructs a new ServletServer for this local port.
|
ServletServer(javax.servlet.http.HttpServlet servlet,
ServerSocket ss)
Constructs a new ServletServer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleRequest(ThreadedHttpServer.Request r)
Override this method to handle the request.
|
public ServletServer(javax.servlet.http.HttpServlet servlet)
throws IOException
servlet - pre-initialized HTTP servlet to useIOExceptionpublic ServletServer(javax.servlet.http.HttpServlet servlet,
ServerSocket ss)
servlet - pre-initialized HTTP servlet to usess - server socketpublic ServletServer(javax.servlet.http.HttpServlet servlet,
int port)
throws IOException
servlet - pre-initialized HTTP servlet to useport - TCP/IP port numberIOExceptionprotected void handleRequest(ThreadedHttpServer.Request r) throws IOException
ThreadedHttpServerhandleRequest in class ThreadedHttpServerIOExceptionCopyright © 2012. All Rights Reserved.