org.semanticdesktop.aperture.crawler.imap
Class ImapCrawlerFactory

java.lang.Object
  extended by org.semanticdesktop.aperture.crawler.imap.ImapCrawlerFactory
All Implemented Interfaces:
DataAccessorFactory, CrawlerFactory

public class ImapCrawlerFactory
extends Object
implements CrawlerFactory, DataAccessorFactory

Manages instances of ImapCrawler.


Constructor Summary
ImapCrawlerFactory()
           
 
Method Summary
 DataAccessor get()
          Returns a DataAccessor instance for accessing the represented schemes.
 Crawler getCrawler(DataSource dataSource)
          Return a Crawler that can crawl the specified DataSource.
 Set getSupportedSchemes()
          Returns all schemes supported by the DataAccessors returned by this DataAccessorFactory.
 Set getSupportedTypes()
          Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImapCrawlerFactory

public ImapCrawlerFactory()
Method Detail

getSupportedTypes

public Set getSupportedTypes()
Description copied from interface: CrawlerFactory
Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.

Specified by:
getSupportedTypes in interface CrawlerFactory
Returns:
A Set of DataSource type URIs.
See Also:
CrawlerFactory.getSupportedTypes()

getCrawler

public Crawler getCrawler(DataSource dataSource)
Description copied from interface: CrawlerFactory
Return a Crawler that can crawl the specified DataSource. The getType method of this DataSource should return a URI that is contained in the supported types set of this CrawlerFactory.

Specified by:
getCrawler in interface CrawlerFactory
Parameters:
dataSource - The DataSource for which a Crawler needs to be generated.
Returns:
A Crawler whose getDataSource method returns the specified DataSource.
See Also:
CrawlerFactory.getCrawler(DataSource)

getSupportedSchemes

public Set getSupportedSchemes()
Description copied from interface: DataAccessorFactory
Returns all schemes supported by the DataAccessors returned by this DataAccessorFactory.

Specified by:
getSupportedSchemes in interface DataAccessorFactory
Returns:
A Set of Strings.
See Also:
DataAccessorFactory.getSupportedSchemes()

get

public DataAccessor get()
Description copied from interface: DataAccessorFactory
Returns a DataAccessor instance for accessing the represented schemes.

Specified by:
get in interface DataAccessorFactory
Returns:
A DataAccessor instance.
See Also:
DataAccessorFactory.get()


Copyright © 2010 Aperture Development Team. All Rights Reserved.