public interface DocumentAcceptor
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels a feed.
|
void |
flush()
Finishes processing a document feed.
|
void |
take(Document document)
Takes an spi Document and pushes it along, presumably to the GSA Feed.
|
void take(Document document) throws DocumentAcceptorException, RepositoryException
document - A DocumentRepositoryException - if transient error accessing the RepositoryRepositoryDocumentException - if fatal error accessing the DocumentDocumentAcceptorException - if a transient error occurs in the
DocumentAcceptorvoid flush()
throws DocumentAcceptorException,
RepositoryException
take(Document) will be made, this method
should be called, so that the DocumentAcceptor may send a cached,
accumulated feed to the GSA.RepositoryException - if transient error accessing the RepositoryRepositoryDocumentException - if fatal error accessing the DocumentDocumentAcceptorException - if a transient error occurs in the
DocumentAcceptorvoid cancel()
throws DocumentAcceptorException,
RepositoryException