org.opensha.sha.mapping
Class GMT_HazusMapServlet

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

public class GMT_HazusMapServlet
extends javax.servlet.http.HttpServlet

Title: GMT_HazusMapServlet

Description: this servlet runs the GMT script based on the parameters and generates the image file and returns that back to the calling application applet

This is the order of operations: Client ==> Server: * directory name (String), or null for auto dirname * GMT Map specification array (GMT_Map[4]) * Metadata (String) * Metadata filename (String) Server ==> Client: * Directory URL path **OR** error message

Copyright: Copyright (c) 2002

Company:

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

Field Summary
static String OPENSHA_FILE_PATH
           
 
Constructor Summary
GMT_HazusMapServlet()
           
 
Method Summary
static String createMap(GMT_MapGenerator gmt, GMT_Map[] maps, String plotDirName, String metadata, String metadataFileName)
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
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

OPENSHA_FILE_PATH

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

GMT_HazusMapServlet

public GMT_HazusMapServlet()
Method Detail

doGet

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

doPost

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

createMap

public static String createMap(GMT_MapGenerator gmt,
                               GMT_Map[] maps,
                               String plotDirName,
                               String metadata,
                               String metadataFileName)
                        throws IOException,
                               GMT_MapException
Throws:
IOException
GMT_MapException