edu.wisc.ssec.mcidasv
Class McIDASVMonitor.MonitorRequestHandler
java.lang.Object
ucar.unidata.util.HttpServer.RequestHandler
edu.wisc.ssec.mcidasv.McIDASVMonitor.MonitorRequestHandler
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- McIDASVMonitor
public class McIDASVMonitor.MonitorRequestHandler
- extends HttpServer.RequestHandler
Class OneInstanceRequestHandler the handler
- Version:
- $Revision$
- Author:
- IDV Development Team
Methods inherited from class ucar.unidata.util.HttpServer.RequestHandler |
addArg, getOutputStream, getSocket, handleFileUpload, log, okToParseContent, parseArgs, redirect, writeBytes, writeHeader, writeHeaderArgs, writeHtml, writeLine, writeResult, writeResult, writeResult, writeResult, writeResult, writeResult, writeResult, writeXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
idv
IntegratedDataViewer idv
- The idv
mysocket
Socket mysocket
- The socket
McIDASVMonitor.MonitorRequestHandler
public McIDASVMonitor.MonitorRequestHandler(IntegratedDataViewer idv,
HttpServer server,
Socket socket)
throws Exception
- ctor
- Parameters:
idv
- the idvserver
- the serversocket
- the socket we handle the connection of
- Throws:
Exception
- On badness
run
public 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
- Specified by:
run
in interface Runnable
- Overrides:
run
in class HttpServer.RequestHandler
decorateHtml
private void decorateHtml(StringBuffer sb)
throws Exception
- Throws:
Exception
handleRequest
protected void handleRequest(String path,
Hashtable formArgs,
Hashtable httpArgs,
String content)
throws Exception
- Overrides:
handleRequest
in class HttpServer.RequestHandler
- Parameters:
path
- url path. ignored.formArgs
- form argshttpArgs
- http argscontent
- content. unused.
- Throws:
Exception
- On badness