dk.netarkivet.wayback
Class NetarchiveResourceStore

java.lang.Object
  extended by dk.netarkivet.wayback.NetarchiveResourceStore
All Implemented Interfaces:
org.archive.wayback.ResourceStore

public class NetarchiveResourceStore
extends java.lang.Object
implements org.archive.wayback.ResourceStore


Constructor Summary
NetarchiveResourceStore()
          constuctor
 
Method Summary
 org.archive.wayback.core.Resource retrieveResource(org.archive.wayback.core.CaptureSearchResult captureSearchResult)
          Transforms search result into a reasource, acording to ResourceStore interface
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetarchiveResourceStore

public NetarchiveResourceStore()
constuctor

Method Detail

retrieveResource

public org.archive.wayback.core.Resource retrieveResource(org.archive.wayback.core.CaptureSearchResult captureSearchResult)
                                                   throws org.archive.wayback.exception.ResourceNotAvailableException
Transforms search result into a reasource, acording to ResourceStore interface

Specified by:
retrieveResource in interface org.archive.wayback.ResourceStore
Parameters:
captureSearchResult - the search result
Returns:
a valid resource containing metadata and a link to the ARC record
Throws:
org.archive.wayback.exception.ResourceNotAvailableException

shutdown

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