org.archive.wayback.resourcestore.indexer
Class ARCRecordToSearchResultAdapter

java.lang.Object
  extended by org.archive.wayback.resourcestore.indexer.ARCRecordToSearchResultAdapter
All Implemented Interfaces:
Adapter<org.archive.io.arc.ARCRecord,CaptureSearchResult>

public class ARCRecordToSearchResultAdapter
extends Object
implements Adapter<org.archive.io.arc.ARCRecord,CaptureSearchResult>

Version:
$Date: 2010-11-19 09:40:22 +0700 (Fri, 19 Nov 2010) $, $Revision: 3340 $
Author:
brad

Constructor Summary
ARCRecordToSearchResultAdapter()
           
 
Method Summary
 CaptureSearchResult adapt(org.archive.io.arc.ARCRecord rec)
          Transform one object into another
 HTTPRecordAnnotater getAnnotater()
           
 UrlCanonicalizer getCanonicalizer()
           
 void setAnnotater(HTTPRecordAnnotater annotater)
           
 void setCanonicalizer(UrlCanonicalizer canonicalizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ARCRecordToSearchResultAdapter

public ARCRecordToSearchResultAdapter()
Method Detail

adapt

public CaptureSearchResult adapt(org.archive.io.arc.ARCRecord rec)
Description copied from interface: Adapter
Transform one object into another

Specified by:
adapt in interface Adapter<org.archive.io.arc.ARCRecord,CaptureSearchResult>
Returns:
new object that is adapted from the old

getCanonicalizer

public UrlCanonicalizer getCanonicalizer()

setCanonicalizer

public void setCanonicalizer(UrlCanonicalizer canonicalizer)

getAnnotater

public HTTPRecordAnnotater getAnnotater()
Returns:
the annotater

setAnnotater

public void setAnnotater(HTTPRecordAnnotater annotater)
Parameters:
annotater - the annotater to set


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