edu.wisc.ssec.mcidasv
Class McIDASVMonitor.MonitorRequestHandler

java.lang.Object
  extended by ucar.unidata.util.HttpServer.RequestHandler
      extended by 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

Field Summary
(package private)  IntegratedDataViewer idv
          The idv
(package private)  Socket mysocket
          The socket
 
Fields inherited from class ucar.unidata.util.HttpServer.RequestHandler
CRLF, LF, server
 
Constructor Summary
McIDASVMonitor.MonitorRequestHandler(IntegratedDataViewer idv, HttpServer server, Socket socket)
          ctor
 
Method Summary
private  void decorateHtml(StringBuffer sb)
           
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
 
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
 

Field Detail

idv

IntegratedDataViewer idv
The idv


mysocket

Socket mysocket
The socket

Constructor Detail

McIDASVMonitor.MonitorRequestHandler

public McIDASVMonitor.MonitorRequestHandler(IntegratedDataViewer idv,
                                            HttpServer server,
                                            Socket socket)
                                     throws Exception
ctor

Parameters:
idv - the idv
server - the server
socket - the socket we handle the connection of
Throws:
Exception - On badness
Method Detail

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 args
httpArgs - http args
content - content. unused.
Throws:
Exception - On badness