public abstract class PathRequestParser extends WrappedRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE| Constructor and Description |
|---|
PathRequestParser(BaseRequestParser wrapped) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abstract WaybackRequest |
parse(String requestPath,
AccessPoint accessPoint)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
|
getEarliestTimestamp, getLatestTimestamp, getMaxRecordssetEarliestTimestamp, setLatestTimestamp, setMaxRecordspublic PathRequestParser(BaseRequestParser wrapped)
wrapped - the BaseRequestParser being wrappedpublic abstract WaybackRequest parse(String requestPath, AccessPoint accessPoint) throws BetterRequestException, BadQueryException
requestPath - the AccessPoint relative path as received by the
AccessPointaccessPoint - 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(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint accessPoint) throws BadQueryException, BetterRequestException
RequestParserparse in interface RequestParserparse in class BaseRequestParserhttpRequest - 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)Copyright © 2005–2015 IIPC. All rights reserved.