edu.arsc.multisearch
Class MultisearchServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by edu.arsc.multisearch.MultisearchServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class MultisearchServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
static java.io.PrintWriter web
          PrintWriter object for servlet.
 
Constructor Summary
MultisearchServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Overwrites HttpServlet's function and prints XHTML and text to the appropriate screen.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Overwrites HttpServlet's doPost.
 java.lang.String getServletInfo()
          Returns a descriptive String about Multisearch as a program.
 void init()
          Initalizes the servlet information, including loading the error codes
 void printResults(java.lang.String outputFile, java.lang.String type)
          Print the results from the given output file(s).
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

web

public static java.io.PrintWriter web
PrintWriter object for servlet.

Constructor Detail

MultisearchServlet

public MultisearchServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Overwrites HttpServlet's function and prints XHTML and text to the appropriate screen. Provides a simple Query grabber using HTML Forms.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
HttpServletRequest -
HttpServletResponse -
Throws:
javax.servlet.ServletException - when there are issues with connection/server
java.io.IOException - when there are issuses with user input

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
Overwrites HttpServlet's doPost.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
HttpServletRequest -
HttpServletResponse -
Throws:
javax.servlet.ServletException - when there are issues with connection/server
java.io.IOException - when there are issuses with user input

init

public void init()
Initalizes the servlet information, including loading the error codes

Overrides:
init in class javax.servlet.GenericServlet

printResults

public void printResults(java.lang.String outputFile,
                         java.lang.String type)
Print the results from the given output file(s).


getServletInfo

public java.lang.String getServletInfo()
Returns a descriptive String about Multisearch as a program.

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet
Returns:
String describing program