org.utgenome.gwt.utgb.server
Class RequestHandlerBase

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.utgenome.gwt.utgb.server.RequestHandlerBase
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, RequestHandler
Direct Known Subclasses:
Hello, RoundCircle, SQLiteAccessSample, TextLabel, WebTrackBase

public abstract class RequestHandlerBase
extends javax.servlet.http.HttpServlet
implements RequestHandler

Abstract base implementation of the RequestHandler

Author:
leo
See Also:
Serialized Form

Constructor Summary
RequestHandlerBase()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
abstract  void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles the HTTP request
 void validate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Validate request parameters
 
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
 

Constructor Detail

RequestHandlerBase

public RequestHandlerBase()
Method Detail

handle

public abstract void handle(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws javax.servlet.ServletException,
                            IOException
Description copied from interface: RequestHandler
Handles the HTTP request

Specified by:
handle in interface RequestHandler
Parameters:
request - the http servlet request
response - the http servlet response
Throws:
javax.servlet.ServletException
IOException

validate

public void validate(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     UTGBException
Description copied from interface: RequestHandler
Validate request parameters

Specified by:
validate in interface RequestHandler
Throws:
javax.servlet.ServletException
UTGBException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2007-2012 utgenome.org. All Rights Reserved.