org.archive.wayback.requestparser
Class WrappedRequestParser
java.lang.Object
org.archive.wayback.requestparser.BaseRequestParser
org.archive.wayback.requestparser.WrappedRequestParser
- All Implemented Interfaces:
- RequestParser
- Direct Known Subclasses:
- DomainPrefixRequestParser, FormRequestParser, OpenSearchRequestParser, PathRequestParser, ProxyReplayRequestParser, TimeBundleRequestParser, TimeGateRequestParser
public abstract class WrappedRequestParser
- extends BaseRequestParser
Abstract subclass of BaseRequestParser, which allows retrieving
configured maxRecords, and earliest and latest timestamp config from an
delegate instance.
This class is intended to be overridden and used in conjunction with a
CompositeRequestParser: The CompositeRequestParser(or subclass thereof) will
hold actual configuration data, and all composed RequestParsers will inherit
from this, accessing the configured data on the wrapped instance.
For examples, please see {Path,Form,OpenSearch,Composite}RequestParser in
this package.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappedRequestParser
public WrappedRequestParser(BaseRequestParser wrapped)
- Parameters:
wrapped - the delegate to retrieve RequestParser configuration
getEarliestTimestamp
public String getEarliestTimestamp()
- Overrides:
getEarliestTimestamp in class BaseRequestParser
- Returns:
- the default earliest timestamp to use with this RequestParser
getLatestTimestamp
public String getLatestTimestamp()
- Overrides:
getLatestTimestamp in class BaseRequestParser
- Returns:
- default latest timestamp for this RequestParser
getMaxRecords
public int getMaxRecords()
- Overrides:
getMaxRecords in class BaseRequestParser
- Returns:
- the maxRecords to use with this RequestParser, when not specified
by the client request
Copyright © 2005-2011 Internet Archive. All Rights Reserved.