org.archive.wayback.webapp
Class RequestMapper

java.lang.Object
  extended by org.archive.wayback.webapp.RequestMapper

public class RequestMapper
extends java.lang.Object

RequestMapper accepts a request, and maps that request to a WaybackContext suitable for that request. This object is a singleton, and the class provides methods for constructing and accessing the singleton.

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

Constructor Summary
RequestMapper(javax.servlet.ServletContext servletContext)
           
 
Method Summary
 void destroy()
          clean up all WaybackContexts, which should release resources gracefully.
 java.util.ArrayList<java.lang.String> getAccessPointNamesOnPort(java.lang.String portStr)
           
 RequestContext mapContext(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestMapper

public RequestMapper(javax.servlet.ServletContext servletContext)
              throws ConfigurationException
Parameters:
configPath -
servletContext -
Throws:
ConfigurationException
Method Detail

mapContext

public RequestContext mapContext(javax.servlet.http.HttpServletRequest request)
Parameters:
request -
Returns:
WaybackContext that handles the specific incoming HTTP request

getAccessPointNamesOnPort

public java.util.ArrayList<java.lang.String> getAccessPointNamesOnPort(java.lang.String portStr)

destroy

public void destroy()
clean up all WaybackContexts, which should release resources gracefully.



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