edu.wisc.ssec.mcidasv
Class McIDASVMonitor

java.lang.Object
  extended by ucar.unidata.util.HttpServer
      extended by edu.wisc.ssec.mcidasv.McIDASVMonitor

public class McIDASVMonitor
extends HttpServer

This provides http based access to a stack trace and enables the user to shut down McIDAS-V. This only is responsive to incoming requests from localhost the urls this provides are: http://localhost:/stack.html http://localhost:/info.html http://localhost:/shutdown.html

Author:
IDV development team

Nested Class Summary
 class McIDASVMonitor.MonitorRequestHandler
          Class OneInstanceRequestHandler the handler
 
Nested classes/interfaces inherited from class ucar.unidata.util.HttpServer
HttpServer.RequestHandler
 
Field Summary
private  IntegratedDataViewer idv
           
private  InetAddress localHost
          The localhost
 
Fields inherited from class ucar.unidata.util.HttpServer
RESPONSE_INTERNALERROR, RESPONSE_NOTFOUND, RESPONSE_OK, RESPONSE_UNAUTHORIZED, serverProperties, TYPE_GET, TYPE_POST
 
Constructor Summary
McIDASVMonitor(IntegratedDataViewer idv, int port)
           
 
Method Summary
protected  HttpServer.RequestHandler doMakeRequestHandler(Socket socket)
          Make the handler for this request.
 
Methods inherited from class ucar.unidata.util.HttpServer
getPort, getProperties, handleError, init, initServerSocket, setPort, xxxxmain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idv

private IntegratedDataViewer idv

localHost

private InetAddress localHost
The localhost

Constructor Detail

McIDASVMonitor

public McIDASVMonitor(IntegratedDataViewer idv,
                      int port)
Method Detail

doMakeRequestHandler

protected HttpServer.RequestHandler doMakeRequestHandler(Socket socket)
                                                  throws Exception
Make the handler for this request. Check if the client is coming from localhost if not then return null.

Overrides:
doMakeRequestHandler in class HttpServer
Parameters:
socket - incoming socket
Returns:
handler or null
Throws:
Exception