public abstract class CompositeRequestParser extends BaseRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE| Constructor and Description |
|---|
CompositeRequestParser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract RequestParser[] |
getRequestParsers() |
void |
init() |
WaybackRequest |
parse(javax.servlet.http.HttpServletRequest httpRequest,
AccessPoint wbContext)
attempt to transform an incoming HttpServletRequest into a
WaybackRequest object. returns null if there is missing information.
|
getEarliestTimestamp, getLatestTimestamp, getMaxRecords, setEarliestTimestamp, setLatestTimestamp, setMaxRecordspublic void init()
protected abstract RequestParser[] getRequestParsers()
public WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint wbContext) throws BadQueryException, BetterRequestException
RequestParserparse in interface RequestParserparse in class BaseRequestParserhttpRequest - ServletHttpRequest being handledwbContext - 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–2017 IIPC. All rights reserved.