public class DatelessReplayRequestParser extends PathRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE| Constructor and Description |
|---|
DatelessReplayRequestParser(BaseRequestParser wrapped) |
| Modifier and Type | Method and Description |
|---|---|
protected WaybackRequest |
handleDatelessRequest(AccessPoint accessPoint,
String requestPath,
Date mementoDate) |
WaybackRequest |
parse(javax.servlet.http.HttpServletRequest httpRequest,
AccessPoint accessPoint)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
|
WaybackRequest |
parse(String requestPath,
AccessPoint accessPoint)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
|
WaybackRequest |
parse(String requestPath,
AccessPoint accessPoint,
Date mementoDate) |
getEarliestTimestamp, getLatestTimestamp, getMaxRecordssetEarliestTimestamp, setLatestTimestamp, setMaxRecordspublic DatelessReplayRequestParser(BaseRequestParser wrapped)
wrapped - the BaseRequestParser being wrappedpublic WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint accessPoint) throws BadQueryException, BetterRequestException
RequestParserparse in interface RequestParserparse in class PathRequestParserhttpRequest - ServletHttpRequest being handledaccessPoint - AccessPoint which is attempting to parse the requestBadQueryException - if the request could match this AccessPoint,
but is malformed: invalid datespec, URL, or flagsBetterRequestException - if the request should be redirected to
provide better user feedback (corrected URL/date in address bar)public WaybackRequest parse(String requestPath, AccessPoint accessPoint) throws BetterRequestException, BadQueryException
PathRequestParserparse in class PathRequestParserrequestPath - the AccessPoint relative path as received by the
AccessPointaccessPoint - AccessPoint which is attempting to parse the requestBetterRequestException - 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 flagspublic WaybackRequest parse(String requestPath, AccessPoint accessPoint, Date mementoDate) throws BetterRequestException, BadQueryException
protected WaybackRequest handleDatelessRequest(AccessPoint accessPoint, String requestPath, Date mementoDate) throws BetterRequestException
BetterRequestExceptionCopyright © 2005–2015 IIPC. All rights reserved.