public class ProxyArchivalRequestParser extends CompositeRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
Constructor and Description |
---|
ProxyArchivalRequestParser() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getLocalhostNames() |
protected RequestParser[] |
getRequestParsers() |
boolean |
isAddDefaults() |
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.
|
void |
setAddDefaults(boolean addDefaults) |
void |
setLocalhostNames(List<String> localhostNames) |
init
getEarliestTimestamp, getLatestTimestamp, getMaxRecords, setEarliestTimestamp, setLatestTimestamp, setMaxRecords
protected RequestParser[] getRequestParsers()
getRequestParsers
in class CompositeRequestParser
public WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint wbContext) throws BadQueryException, BetterRequestException
RequestParser
parse
in interface RequestParser
parse
in class CompositeRequestParser
httpRequest
- 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)public boolean isAddDefaults()
public void setAddDefaults(boolean addDefaults)
addDefaults
- the addDefaults to setCopyright © 2005–2015 IIPC. All rights reserved.