org.apache.manifoldcf.crawler.system
Class WorkerThread.DocumentToProcess

java.lang.Object
  extended by org.apache.manifoldcf.crawler.system.WorkerThread.DocumentToProcess
Enclosing class:
WorkerThread

protected static class WorkerThread.DocumentToProcess
extends java.lang.Object

Class that represents a decision to process a document.


Field Summary
protected  QueuedDocument document
           
protected  boolean scanOnly
           
 
Constructor Summary
WorkerThread.DocumentToProcess(QueuedDocument document, boolean scanOnly)
          Construct.
 
Method Summary
 QueuedDocument getDocument()
          Get the document.
 boolean getScanOnly()
          Get the 'scan only' flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected QueuedDocument document

scanOnly

protected boolean scanOnly
Constructor Detail

WorkerThread.DocumentToProcess

public WorkerThread.DocumentToProcess(QueuedDocument document,
                                      boolean scanOnly)
Construct.

Parameters:
document - is the document to process.
scanOnly - is true if the document should be scanned, but not ingested.
Method Detail

getDocument

public QueuedDocument getDocument()
Get the document.

Returns:
the document.

getScanOnly

public boolean getScanOnly()
Get the 'scan only' flag.

Returns:
true if only scan should be attempted.