org.archive.wayback.util.webapp
Class RequestHandlerContext

java.lang.Object
  extended by org.archive.wayback.util.webapp.RequestHandlerContext

public class RequestHandlerContext
extends Object

A simple composition of the RequestHandler which an HttpServletRequest was mapped to, and the path prefix which indicated the RequestHandler. This allows computing the portion of the original request path within the RequestHandler.

Author:
brad

Constructor Summary
RequestHandlerContext(RequestHandler handler, String pathPrefix)
          Constructor
 
Method Summary
 String getPathPrefix()
           
 RequestHandler getRequestHandler()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandlerContext

public RequestHandlerContext(RequestHandler handler,
                             String pathPrefix)
Constructor

Parameters:
handler - the RequestHandler to which the incoming request was mapped
pathPrefix - the leading portion of the original request path that indicated the RequestHandler
Method Detail

getRequestHandler

public RequestHandler getRequestHandler()
Returns:
the RequestHandler to which the incoming request was mapped.

getPathPrefix

public String getPathPrefix()
Returns:
the leading portion of the original request path that indicated the RequestHandler


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