org.archive.wayback.archivalurl.requestparser
Class PathPrefixDatePrefixQueryRequestParser

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.PathPrefixDatePrefixQueryRequestParser
All Implemented Interfaces:
RequestParser

public class PathPrefixDatePrefixQueryRequestParser
extends PathRequestParser

RequestParser implementation that extracts request info from an Archival Url representing an url prefix and a date prefix.

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.requestparser.BaseRequestParser
DEFAULT_MAX_RECORDS, QUERY_BASE, REPLAY_BASE, XQUERY_BASE
 
Constructor Summary
PathPrefixDatePrefixQueryRequestParser(BaseRequestParser wrapped)
           
 
Method Summary
 WaybackRequest parse(String requestPath, AccessPoint ap)
          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

PathPrefixDatePrefixQueryRequestParser

public PathPrefixDatePrefixQueryRequestParser(BaseRequestParser wrapped)
Parameters:
wrapped - BaseRequestParser which provides general configuration
Method Detail

parse

public WaybackRequest parse(String requestPath,
                            AccessPoint ap)
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
ap - AccessPoint which is attempting to parse the request
Returns:
populated WaybackRequest object if successful, null otherwise.


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