Package com.norconex.importer.handler
Class Reject
java.lang.Object
com.norconex.importer.handler.Reject
- All Implemented Interfaces:
Configurable<RejectConfig>,ConfigurableDocHandler<RejectConfig>,DocHandler
Special handler that marks a document as being "rejected", with an
optional custom message for event logging. If wrapped in a
Condition, information about the condition will also be logged.-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTYFields inherited from interface com.norconex.importer.handler.DocHandler
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanbooleanhandle(DocHandlerContext ctx) Perform any operations on a document.inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.norconex.importer.handler.DocHandler
close, init
-
Constructor Details
-
Reject
public Reject()
-
-
Method Details
-
handle
Description copied from interface:DocHandlerPerform any operations on a document.- Specified by:
handlein interfaceDocHandler- Parameters:
ctx- the document handling context- Returns:
falseto stop processing and reject a document ortrueto proceed to the next configured handler.
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<RejectConfig>
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-