|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.service.crawler.AbstractListResultReceiver
A base class for implementing list result receivers.
Copyright 2004 SAP AG
| Field Summary | |
protected ICrawler |
m_Crawler
Deprecated. The crawler for this result receiver, as passed from onCrawlStart(). |
| Fields inherited from interface com.sapportals.wcm.service.crawler.ICrawlerListResultReceiver |
INFINITE_SIZE |
| Constructor Summary | |
AbstractListResultReceiver()
Deprecated. Construct. The default constructor has to be provided for scheduled crawlers. |
|
| Method Summary | |
abstract IResourceContext |
getCrawlerContext()
Deprecated. Called by the crawler to get a context to use for accessing the resources during the crawl. |
abstract java.lang.String |
getCrawlerName(java.util.Locale locale)
Deprecated. Called to get an descriptive name for the crawler. |
int |
getCrawlerResultSize()
Deprecated. Get the maximum result size for this crawl. |
WcmException |
onCrawlException(java.lang.Exception exception,
IResource resource)
Deprecated. Called by the crawler when an exception occured during the crawl. |
abstract void |
onCrawlResult(IResourceList resourceList)
Deprecated. Inform the receiver about the crawling result. |
boolean |
onCrawlStart(ICrawler crawler)
Deprecated. Called by the crawler to signal the start of a crawl. |
boolean |
onCrawlStop()
Deprecated. Called by the crawler to signal the end of a crawl. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ICrawler m_Crawler
onCrawlStart().| Constructor Detail |
public AbstractListResultReceiver()
| Method Detail |
public abstract void onCrawlResult(IResourceList resourceList)
onCrawlStop().onCrawlResult in interface ICrawlerListResultReceiveran - IResourceList with the found resources. The list
contains at most x resources, where x is the value
from getCrawlerResultSize().public abstract java.lang.String getCrawlerName(java.util.Locale locale)
getCrawlerName in interface ICrawlerResultReceiverString with the crawlers name.public abstract IResourceContext getCrawlerContext()
getCrawlerContext in interface ICrawlerResultReceiverIResourceContext with the context to use or
null if the context cannot be retrieved.
A null will stop the crawler!
public WcmException onCrawlException(java.lang.Exception exception,
IResource resource)
onCrawlStart and
onCrawlStop.onCrawlException in interface ICrawlerResultReceiverexception - a Exception with the original exception.resource - the IResource which caused the exception, if
available, or null.WcmException with the exception to throw (will stop
the crawl or null if the exception should be ignored.public boolean onCrawlStart(ICrawler crawler)
crawler to
this.m_Crawler.onCrawlStart in interface ICrawlerResultReceivercrawler - the ICrawler which performs the crawl.boolean true if the crawl should be
performed, false if the result receiver want's to
stop this crawl.public boolean onCrawlStop()
this.m_Crawler to
null.onCrawlStop in interface ICrawlerResultReceiverboolean true if the crawled resources
should be discarded, false if the delta list should
be kept.public int getCrawlerResultSize()
getCrawlerContext().INFINITE_SIZE.getCrawlerResultSize in interface ICrawlerListResultReceiverint with the maximum result size. A result size
less then 1 will stop the crawler.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||