public class ServletServer extends ThreadedHttpServer
ThreadedHttpServer.Request
ss
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 useIOException
public 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 numberIOException
protected void handleRequest(ThreadedHttpServer.Request r) throws IOException
ThreadedHttpServer
handleRequest
in class ThreadedHttpServer
IOException
Copyright © 2013. All Rights Reserved.