public class OneInstanceServer extends HttpServer
Modifier and Type | Class and Description |
---|---|
static class |
OneInstanceServer.OneInstanceRequestHandler
Class OneInstanceRequestHandler the handler
|
HttpServer.RequestHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARG_ARGS
http arg
|
RESPONSE_INTERNALERROR, RESPONSE_NOTFOUND, RESPONSE_OK, RESPONSE_UNAUTHORIZED, serverProperties, TYPE_GET, TYPE_POST
Constructor and Description |
---|
OneInstanceServer(IntegratedDataViewer idv,
int port)
ctor
|
Modifier and Type | Method and Description |
---|---|
protected HttpServer.RequestHandler |
doMakeRequestHandler(java.net.Socket socket)
Make the handler for this connection
|
protected void |
handleError(java.lang.String msg,
java.lang.Exception exc)
Handle the error
|
getPort, getProperties, init, initServerSocket, setPort, xxxxmain
public static final java.lang.String ARG_ARGS
public OneInstanceServer(IntegratedDataViewer idv, int port)
idv
- The idvport
- The port to listen onprotected void handleError(java.lang.String msg, java.lang.Exception exc)
handleError
in class HttpServer
msg
- Error message_exc
- Exceptionprotected HttpServer.RequestHandler doMakeRequestHandler(java.net.Socket socket) throws java.lang.Exception
doMakeRequestHandler
in class HttpServer
socket
- The connectionjava.lang.Exception
- On badness