org.archive.wayback.resourcestore
Class SimpleResourceStore

java.lang.Object
  extended by org.archive.wayback.resourcestore.SimpleResourceStore
All Implemented Interfaces:
ResourceStore

public class SimpleResourceStore
extends java.lang.Object
implements ResourceStore

Implements ResourceStore where ARC/WARCs are accessed via a local file or an HTTP 1.1 range request. All files are assumed to be "rooted" at a particular HTTP URL, or within a single local directory. The HTTP version may imply a file reverse-proxy to connect through to actual HTTP ARC/WARC locations.

Version:
$Date: 2009-07-17 16:52:26 -0700 (Fri, 17 Jul 2009) $, $Revision: 2767 $
Author:
brad

Constructor Summary
SimpleResourceStore()
           
 
Method Summary
 java.lang.String getPrefix()
           
 Resource retrieveResource(CaptureSearchResult result)
          Transform a SearchResult into a Resource
 void setPrefix(java.lang.String prefix)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResourceStore

public SimpleResourceStore()
Method Detail

retrieveResource

public Resource retrieveResource(CaptureSearchResult result)
                          throws ResourceNotAvailableException
Description copied from interface: ResourceStore
Transform a SearchResult into a Resource

Specified by:
retrieveResource in interface ResourceStore
Returns:
Resource object retrieved for the SearchResult
Throws:
ResourceNotAvailableException

getPrefix

public java.lang.String getPrefix()
Returns:
the prefix

setPrefix

public void setPrefix(java.lang.String prefix)
Parameters:
prefix - the prefix to set

shutdown

public void shutdown()
              throws java.io.IOException
Specified by:
shutdown in interface ResourceStore
Throws:
java.io.IOException


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