public interface ResourceIndex
| Modifier and Type | Method and Description |
|---|---|
SearchResults |
query(WaybackRequest request)
Transform a WaybackRequest into a ResourceResults.
|
void |
shutdown()
Release any resources used by this ResourceIndex cleanly
|
SearchResults query(WaybackRequest request) throws ResourceIndexNotAvailableException, ResourceNotInArchiveException, BadQueryException, AccessControlException
request - WaybackRequest object from RequestParserResourceIndexNotAvailableException - if the ResourceIndex
is not available (remote host down, local files missing, etc)ResourceNotInArchiveException - if the ResourceIndex could be
contacted, but no SearchResult objects matched the requestBadQueryException - if the WaybackRequest is lacking information
required to make a reasonable search of this ResourceIndexAccessControlException - if SearchResult objects actually matched,
but could not be returned due to AccessControl restrictions
(robots.txt documents, Administrative URL blocks, etc)void shutdown()
throws IOException
IOException - for usual causesCopyright © 2005–2015 IIPC. All rights reserved.