public interface RequestParser
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.
|
WaybackRequest parse(javax.servlet.http.HttpServletRequest httpRequest, AccessPoint accessPoint) throws BadQueryException, BetterRequestException
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.