public interface RejectedLdifListener
By default the RejectedLdifListener.FAIL_FAST
listener is used.
Modifier and Type | Field and Description |
---|---|
static RejectedLdifListener |
FAIL_FAST
The default handler which ignores skipped records but which terminates
processing by throwing a
DecodeException as soon as a record is
found to be malformed or rejected due to a schema validation failure. |
static RejectedLdifListener |
IGNORE_ALL
A handler which ignores all rejected record notifications.
|
Modifier and Type | Method and Description |
---|---|
void |
handleMalformedRecord(long lineNumber,
List<String> lines,
DecodeException exception)
Invoked when a record was rejected because it was malformed in some way
and could not be decoded.
|
void |
handleSchemaValidationFailure(long lineNumber,
List<String> lines,
List<org.forgerock.i18n.LocalizableMessage> reasons)
Invoked when a record was rejected because it does not conform to the
schema and schema validation is enabled.
|
void |
handleSchemaValidationWarning(long lineNumber,
List<String> lines,
List<org.forgerock.i18n.LocalizableMessage> reasons)
Invoked when a record was not rejected but contained one or more schema
validation warnings.
|
void |
handleSkippedRecord(long lineNumber,
List<String> lines,
org.forgerock.i18n.LocalizableMessage reason)
Invoked when a record was skipped because it did not match filter
criteria defined by the reader.
|
static final RejectedLdifListener FAIL_FAST
DecodeException
as soon as a record is
found to be malformed or rejected due to a schema validation failure.static final RejectedLdifListener IGNORE_ALL
void handleMalformedRecord(long lineNumber, List<String> lines, DecodeException exception) throws DecodeException
lineNumber
- The line number within the source location in which the
malformed record is located, if known, otherwise -1
.lines
- The content of the malformed record.exception
- The original exception for the reason why the record is malformed.DecodeException
- If processing should terminate.void handleSchemaValidationFailure(long lineNumber, List<String> lines, List<org.forgerock.i18n.LocalizableMessage> reasons) throws DecodeException
lineNumber
- The line number within the source location in which the
rejected record is located, if known, otherwise -1
.lines
- The content of the record which failed schema validation.reasons
- The reasons why the record failed schema validation.DecodeException
- If processing should terminate.void handleSchemaValidationWarning(long lineNumber, List<String> lines, List<org.forgerock.i18n.LocalizableMessage> reasons) throws DecodeException
lineNumber
- The line number within the source location in which the record
is located, if known, otherwise -1
.lines
- The content of the record which contained schema validation
warnings.reasons
- The schema validation warnings.DecodeException
- If processing should terminate.void handleSkippedRecord(long lineNumber, List<String> lines, org.forgerock.i18n.LocalizableMessage reason) throws DecodeException
lineNumber
- The line number within the source location in which the
skipped record is located, if known, otherwise -1
.lines
- The content of the record which was skipped.reason
- The reason why the record was skipped.DecodeException
- If processing should terminate.Copyright © 2010-2018, ForgeRock All Rights Reserved.