org.archive.wayback.archivalurl.requestparser
Class DatelessReplayRequestParser
java.lang.Object
org.archive.wayback.requestparser.BaseRequestParser
org.archive.wayback.requestparser.WrappedRequestParser
org.archive.wayback.requestparser.PathRequestParser
org.archive.wayback.archivalurl.requestparser.DatelessReplayRequestParser
- All Implemented Interfaces:
- RequestParser
public class DatelessReplayRequestParser
- extends PathRequestParser
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatelessReplayRequestParser
public DatelessReplayRequestParser(BaseRequestParser wrapped)
- Parameters:
wrapped - the BaseRequestParser being wrapped
parse
public WaybackRequest parse(String requestPath,
AccessPoint accessPoint)
throws BetterRequestException,
BadQueryException
- Description copied from class:
PathRequestParser
- attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
- Specified by:
parse in class PathRequestParser
- Parameters:
requestPath - the AccessPoint relative path as received by the
AccessPointaccessPoint - AccessPoint which is attempting to parse the request
- Returns:
- populated WaybackRequest object if successful, null otherwise.
- Throws:
BetterRequestException - if the request should be redirected to
provide better user feedback (corrected URL/date in address bar)
BadQueryException - if the request could match this AccessPoint,
but is malformed: invalid datespec, URL, or flags
Copyright © 2005-2011 Internet Archive. All Rights Reserved.