org.archive.wayback
Interface ReplayDispatcher

All Known Implementing Classes:
SelectorReplayDispatcher

public interface ReplayDispatcher

Locate and return a ReplayRenderer appropriate for the users request (accept header, for example) and the resulting Resource.

Version:
$Date: 2010-10-01 23:20:35 +0700 (Fri, 01 Oct 2010) $, $Revision: 3265 $
Author:
brad

Method Summary
 CaptureSearchResult getClosest(WaybackRequest wbRequest, CaptureSearchResults results)
           
 ReplayRenderer getRenderer(WaybackRequest wbRequest, CaptureSearchResult result, Resource resource)
          Return a ReplayRenderer appropriate for the Resource.
 

Method Detail

getRenderer

ReplayRenderer getRenderer(WaybackRequest wbRequest,
                           CaptureSearchResult result,
                           Resource resource)
Return a ReplayRenderer appropriate for the Resource.

Parameters:
wbRequest - WaybackRequest being handled.
result - CapturSearchResult from the ResourceIndex which is being returned.
resource - Resource as returned by ResourceStore which should be returned to the user.
Returns:
an appropriate ReplayRenderer for the Resource, given the request context

getClosest

CaptureSearchResult getClosest(WaybackRequest wbRequest,
                               CaptureSearchResults results)
                               throws BetterRequestException
Parameters:
wbRequest - the Request being handled
results - the CaptureSearchResults from the ResourceIndex
Returns:
the CaptureSearchResult to be rendered (best for the wbRequest)
Throws:
BetterRequestException - if the user should be directed to a different URL, with the exact timestamp, for example.


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