org.opensha.sha.gui.servlets
Class HazardDataSetPlotterCalcServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.opensha.sha.gui.servlets.HazardDataSetPlotterCalcServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HazardDataSetPlotterCalcServlet
extends javax.servlet.http.HttpServlet

Title: HazardDataSetPlotterCalcServlet

Description: This class does the calculation for the HazardDataSetPloter. Once the user has selected the lat, lon and gridSpacing, it will do the calculation using the HazardMap dataset and return back list containing the Y values for the selected region.

Version:
1.0
Author:
: Nitin Gupta and Vipin Gupta
See Also:
Serialized Form

Field Summary
static String PARENT_DIR
           
static String SITES_FILE_NAME
           
 
Constructor Summary
HazardDataSetPlotterCalcServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This method just calls the doPost method
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARENT_DIR

public static final String PARENT_DIR
See Also:
Constant Field Values

SITES_FILE_NAME

public static final String SITES_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

HazardDataSetPlotterCalcServlet

public HazardDataSetPlotterCalcServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws IOException,
                  javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request -
response -
Throws:
IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws IOException,
                   javax.servlet.ServletException
This method just calls the doPost method

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - : Request Object
response - : Response Object
Throws:
IOException - : Throws IOException during read-write from connection stream
javax.servlet.ServletException