public class McIDASVMonitor.MonitorRequestHandler extends HttpServer.RequestHandler
| Modifier and Type | Field and Description |
|---|---|
(package private) IntegratedDataViewer |
idv |
(package private) Socket |
mysocket |
CRLF, LF, server| Constructor and Description |
|---|
MonitorRequestHandler(IntegratedDataViewer idv,
HttpServer server,
Socket socket)
ctor
|
| Modifier and Type | Method and Description |
|---|---|
private void |
decorateHtml(StringBuffer sb) |
private void |
enableTraceLogging() |
protected void |
handleRequest(String path,
Hashtable formArgs,
Hashtable httpArgs,
String content) |
void |
run()
Try to trap the case where the socket doesn't contain any bytes
This can happen when mcservl connects to ping
Prevents an infinite loop in HttpServer
|
addArg, getOutputStream, getSocket, handleFileUpload, log, okToParseContent, parseArgs, redirect, writeBytes, writeHeader, writeHeaderArgs, writeHtml, writeLine, writeResult, writeResult, writeResult, writeResult, writeResult, writeResult, writeResult, writeXmlpublic MonitorRequestHandler(IntegratedDataViewer idv, HttpServer server, Socket socket) throws Exception
idv - the idvserver - the serversocket - the socket we handle the connection ofException - On badnesspublic void run()
run in interface Runnablerun in class HttpServer.RequestHandlerprivate void decorateHtml(StringBuffer sb) throws Exception
Exceptionprotected void handleRequest(String path, Hashtable formArgs, Hashtable httpArgs, String content) throws Exception
handleRequest in class HttpServer.RequestHandlerpath - url path. ignored.formArgs - form argshttpArgs - http argscontent - content. unused.Exception - On badnessprivate void enableTraceLogging() throws Exception
Exception