org.archive.wayback.replay
Class DateRedirectingClosestResultSelector
java.lang.Object
org.archive.wayback.replay.DateRedirectingClosestResultSelector
- All Implemented Interfaces:
- ClosestResultSelector
- Direct Known Subclasses:
- ArchivalUrlDateRedirectingClosestResultSelector
public class DateRedirectingClosestResultSelector
- extends Object
- implements ClosestResultSelector
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateRedirectingClosestResultSelector
public DateRedirectingClosestResultSelector()
getClosest
public CaptureSearchResult getClosest(WaybackRequest wbRequest,
CaptureSearchResults results)
throws BetterRequestException
- Description copied from interface:
ClosestResultSelector
- Locate and return the best matching search result from a set for a given
request.
- Specified by:
getClosest in interface ClosestResultSelector
- Parameters:
wbRequest - The WaybackRequest being handledresults - the CaptureSeachResults found matching the request
- Returns:
- the best CaptureSearchResult, which should be replayed to the
user.
- Throws:
BetterRequestException - if the user should be redirected to a
different, better URL to make this request.
doRedirection
protected void doRedirection(WaybackRequest wbRequest,
CaptureSearchResult closest)
throws BetterRequestException
- Throws:
BetterRequestException
Copyright © 2005-2011 Internet Archive. All Rights Reserved.