org.archive.wayback.archivalurl.requestparser
Class DatelessReplayRequestParser

java.lang.Object
  extended by org.archive.wayback.requestparser.BaseRequestParser
      extended by org.archive.wayback.requestparser.WrappedRequestParser
          extended by org.archive.wayback.requestparser.PathRequestParser
              extended by org.archive.wayback.archivalurl.requestparser.DatelessReplayRequestParser
All Implemented Interfaces:
RequestParser

public class DatelessReplayRequestParser
extends PathRequestParser

Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.requestparser.BaseRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
 
Constructor Summary
DatelessReplayRequestParser(BaseRequestParser wrapped)
           
 
Method Summary
 WaybackRequest parse(String requestPath, AccessPoint accessPoint)
          attempt to transform an incoming HttpServletRequest into a WaybackRequest object.
 
Methods inherited from class org.archive.wayback.requestparser.PathRequestParser
parse
 
Methods inherited from class org.archive.wayback.requestparser.WrappedRequestParser
getEarliestTimestamp, getLatestTimestamp, getMaxRecords
 
Methods inherited from class org.archive.wayback.requestparser.BaseRequestParser
setEarliestTimestamp, setLatestTimestamp, setMaxRecords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatelessReplayRequestParser

public DatelessReplayRequestParser(BaseRequestParser wrapped)
Parameters:
wrapped - the BaseRequestParser being wrapped
Method Detail

parse

public WaybackRequest parse(String requestPath,
                            AccessPoint accessPoint)
                     throws BetterRequestException,
                            BadQueryException
Description copied from class: PathRequestParser
attempt to transform an incoming HttpServletRequest into a WaybackRequest object. returns null if there is missing information.

Specified by:
parse in class PathRequestParser
Parameters:
requestPath - the AccessPoint relative path as received by the AccessPoint
accessPoint - AccessPoint which is attempting to parse the request
Returns:
populated WaybackRequest object if successful, null otherwise.
Throws:
BetterRequestException - if the request should be redirected to provide better user feedback (corrected URL/date in address bar)
BadQueryException - if the request could match this AccessPoint, but is malformed: invalid datespec, URL, or flags


Copyright © 2005-2011 Internet Archive. All Rights Reserved.