org.archive.wayback.replay.swf
Class SWFReplayRenderer

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

public class SWFReplayRenderer
extends Object
implements ReplayRenderer

ReplayRenderer which passes embedded URLs inside flash (SWF) format content through a ResultURIConverter, allowing them to be rewritten.

Author:
brad

Constructor Summary
SWFReplayRenderer(HttpHeaderProcessor httpHeaderProcessor)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWFReplayRenderer

public SWFReplayRenderer(HttpHeaderProcessor httpHeaderProcessor)
Parameters:
httpHeaderProcessor - to use for rewriting original HTTP headers
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


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