public class TimeMapRequestParser extends WrappedRequestParser implements MementoConstants
Modifier and Type | Field and Description |
---|---|
static Pattern |
WB_REQUEST_REGEX |
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
ACCEPT_DATETIME, AGGREGATION_PREFIX_CONFIG, APPLICATION_LINK_FORMAT, APPLICATION_RDF_XML_FORMAT, DATE_FORMAT_14, DATETIME, FIRST, FIRST_LAST_MEMENTO, FIRST_MEMENTO, FORMAT_LINK, FORMAT_RDF, FROM, GMT_TIMEZONE_STRING, GMT_TZ, HTTP_LINK_DATE_FORMAT, LAST, LAST_MEMENTO, LINK, LINK_PATH, MEMENTO, MEMENTO_DATETIME, NEGOTIATE_DATETIME, NEXT, NEXT_LAST_MEMENTO, NEXT_MEMENTO, ORIGINAL, PAGE_MAXRECORDS_CONFIG, PAGE_STARTS, PREV, PREV_FIRST_MEMENTO, PREV_MEMENTO, RDF_XML_SERIALIZER, REL, TIMEBUNDLE, TIMEBUNDLE_RESPONSE_CODE, TIMEGATE, TIMEGATE_JSP_HANDLER, TIMEGATE_PREFIX_CONFIG, TIMEMAP, UNTIL, VARY, WBR_FORMAT_KEY, WBR_TIMEGATE_KEY, WBR_TIMEGATE_VALUE
Constructor and Description |
---|
TimeMapRequestParser(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.
|
getEarliestTimestamp, getLatestTimestamp, getMaxRecords
setEarliestTimestamp, setLatestTimestamp, setMaxRecords
public static final Pattern WB_REQUEST_REGEX
public TimeMapRequestParser(BaseRequestParser wrapped)
wrapped
- BaseRequestParser holding configpublic WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint accessPoint) throws BadQueryException, BetterRequestException
RequestParser
parse
in interface RequestParser
parse
in class BaseRequestParser
httpRequest
- 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.