public class Validation extends Responder
Exchange
is validated
against a validator
(a {#link Processor}) set at construction
time. If validation succeeds the validation result is returned to the
initiator and the in-message of the incoming Exchange
is forwarded to
the next processor using an in-only Exchange
. If validation fails
(validator returned fault or exception) then the validation fault or
exception is returned to the initiator and processing stops.Constructor and Description |
---|
Validation(org.apache.camel.Processor validator)
Creates a new
Validation process. |
Validation(org.apache.camel.Producer validator)
Creates a new
Validation process. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
process(org.apache.camel.Exchange original,
org.apache.camel.Exchange response)
Returns
false if the response exchange
failed indicating that processing shall stop. |
createDelegateExchange, doStart, doStop, processNext
getProcessor, hasNext, next, process, setProcessor, toString
public Validation(org.apache.camel.Processor validator)
Validation
process.validator
- processor that creates a validation response.public Validation(org.apache.camel.Producer validator)
Validation
process.validator
- producer that creates a validation response.Copyright © 2018 Open eHealth Foundation. All rights reserved.