public abstract class DateUrlPathRequestParser extends PathRequestParser
TIMESTAMP component is %-decoded before passed to
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
Constructor and Description |
---|
DateUrlPathRequestParser(BaseRequestParser wrapped) |
Modifier and Type | Method and Description |
---|---|
WaybackRequest |
parse(String requestPath,
AccessPoint accessPoint)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
|
protected abstract WaybackRequest |
parseDateUrl(String dateStr,
String urlStr)
parse
dateStr and urlStr and return WaybackRequest object. |
parse
getEarliestTimestamp, getLatestTimestamp, getMaxRecords
setEarliestTimestamp, setLatestTimestamp, setMaxRecords
public DateUrlPathRequestParser(BaseRequestParser wrapped)
public WaybackRequest parse(String requestPath, AccessPoint accessPoint)
PathRequestParser
parse
in class PathRequestParser
requestPath
- the AccessPoint relative path as received by the
AccessPointaccessPoint
- AccessPoint which is attempting to parse the requestprotected abstract WaybackRequest parseDateUrl(String dateStr, String urlStr)
dateStr
and urlStr
and return WaybackRequest
object.dateStr
- the first path component, %-decoded.urlStr
- everything after the first slash, non-decoded.WaybackRequest
with parse result, or null
if either
dateStr
or urlStr
does not match expected syntax.Copyright © 2005–2015 IIPC. All rights reserved.