org.archive.wayback.webapp
Class ServletRequestContext

java.lang.Object
  extended by org.archive.wayback.webapp.ServletRequestContext
All Implemented Interfaces:
RequestContext
Direct Known Subclasses:
AdministrativeExclusionServlet, ExclusionServlet, FileProxyServlet, ResourceFileLocationDBServlet

public abstract class ServletRequestContext
extends java.lang.Object
implements RequestContext

Version:
$Date$, $Revision$
Author:
brad

Constructor Summary
ServletRequestContext()
           
 
Method Summary
protected static java.lang.String getMapParam(java.util.Map<java.lang.String,java.lang.String[]> queryMap, java.lang.String field)
           
protected static java.lang.String getMapParamOrEmpty(java.util.Map<java.lang.String,java.lang.String[]> map, java.lang.String param)
           
protected static java.lang.String getRequiredMapParam(java.util.Map<java.lang.String,java.lang.String[]> queryMap, java.lang.String field)
           
abstract  boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletRequestContext

public ServletRequestContext()
Method Detail

getMapParam

protected static java.lang.String getMapParam(java.util.Map<java.lang.String,java.lang.String[]> queryMap,
                                              java.lang.String field)

getRequiredMapParam

protected static java.lang.String getRequiredMapParam(java.util.Map<java.lang.String,java.lang.String[]> queryMap,
                                                      java.lang.String field)
                                               throws java.text.ParseException
Throws:
java.text.ParseException

getMapParamOrEmpty

protected static java.lang.String getMapParamOrEmpty(java.util.Map<java.lang.String,java.lang.String[]> map,
                                                     java.lang.String param)

handleRequest

public abstract boolean handleRequest(javax.servlet.http.HttpServletRequest httpRequest,
                                      javax.servlet.http.HttpServletResponse httpResponse)
                               throws javax.servlet.ServletException,
                                      java.io.IOException
Specified by:
handleRequest in interface RequestContext
Returns:
true if the RequestContent returned data to the client.
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2005-2009 Internet Archive. All Rights Reserved.