public class OpenSearchRequestParser extends WrappedRequestParser
Modifier and Type | Field and Description |
---|---|
static String |
SEARCH_QUERY
CGI argument name for query arguments
|
static String |
SEARCH_RESULTS
CGI argument name for number of results per page, 1 based
|
static String |
START_PAGE
CGI argument name for page number of results, 1 based
|
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
Constructor and Description |
---|
OpenSearchRequestParser(BaseRequestParser wrapped) |
Modifier and Type | Method and Description |
---|---|
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, setMaxRecords
public static final String SEARCH_QUERY
public static final String SEARCH_RESULTS
public static final String START_PAGE
public OpenSearchRequestParser(BaseRequestParser wrapped)
wrapped
- the BaseRequestParser being wrappedpublic WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint wbContext) throws BadQueryException
RequestParser
parse
in interface RequestParser
parse
in class BaseRequestParser
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 flagsCopyright © 2005–2015 IIPC. All rights reserved.