org.archive.wayback.replay
Class JSPReplayRenderer

java.lang.Object
  extended by org.archive.wayback.replay.JSPReplayRenderer
All Implemented Interfaces:
ReplayRenderer

public class JSPReplayRenderer
extends Object
implements ReplayRenderer

ReplayRenderer implementation which just forwards responsibility for rendering a resource to a .jsp file.

Author:
brad

Constructor Summary
JSPReplayRenderer()
           
 
Method Summary
 String getTargetJsp()
           
 void renderResource(javax.servlet.http.HttpServletRequest httpRequest, javax.servlet.http.HttpServletResponse httpResponse, WaybackRequest wbRequest, CaptureSearchResult result, Resource resource, ResultURIConverter uriConverter, CaptureSearchResults results)
          return a resource to the user.
 void setTargetJsp(String targetJsp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSPReplayRenderer

public JSPReplayRenderer()
Method Detail

renderResource

public void renderResource(javax.servlet.http.HttpServletRequest httpRequest,
                           javax.servlet.http.HttpServletResponse httpResponse,
                           WaybackRequest wbRequest,
                           CaptureSearchResult result,
                           Resource resource,
                           ResultURIConverter uriConverter,
                           CaptureSearchResults results)
                    throws javax.servlet.ServletException,
                           IOException,
                           WaybackException
Description copied from interface: ReplayRenderer
return a resource to the user.

Specified by:
renderResource in interface ReplayRenderer
Parameters:
httpRequest - the HttpServletRequest
httpResponse - the HttpServletResponse
wbRequest - the WaybackRequest that returned the results
result - actual CaptureSearchResult that maps to resource to replay
resource - resource to replay
uriConverter - the URI converter to use to translate matching results into replayable URLs
results - all CaptureSearchResults that were returned from the ResourceIndex, probably including other capture dates of the same URL.
Throws:
javax.servlet.ServletException - per usual
IOException - per usual
WaybackException - if Wayback data specific, anticipated exceptions occur

getTargetJsp

public String getTargetJsp()
Returns:
the context-relative path to the .jsp responsible for rendering the resource

setTargetJsp

public void setTargetJsp(String targetJsp)
Parameters:
targetJsp - the context-relative path to the .jsp responsible for rendering the resource


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