public abstract class ValidatorBase extends FixedForwardPipe implements IDualModeValidator
Modifier and Type | Class and Description |
---|---|
static class |
ValidatorBase.ResponseValidatorWrapper |
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
ValidatorBase() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
protected PipeForward |
determineForward(AbstractXmlValidator.ValidationResult validationResult,
PipeLineSession session,
boolean responseMode,
Supplier<String> errorMessageProvider) |
PipeRunResult |
doPipe(Message message,
PipeLineSession session)
This is where the action takes place.
|
PipeRunResult |
doPipe(Message input,
PipeLineSession session,
boolean responseMode,
String messageRoot) |
IValidator |
getResponseValidator() |
protected boolean |
isConfiguredForMixedValidation() |
void |
setForwardFailureToSuccess(boolean b)
Deprecated.
|
void |
setResponseRoot(String responseRoot)
Name of the response root element
|
void |
setRoot(String root)
Name of the root element
|
void |
setSchemaSessionKey(String schemaSessionKey)
Session key for retrieving a schema
|
protected abstract PipeForward |
validate(Message messageToValidate,
PipeLineSession session,
boolean responseMode,
String messageRoot) |
PipeRunResult |
validate(Message message,
PipeLineSession session,
String messageRoot) |
protected PipeForward |
validate(String messageToValidate,
PipeLineSession session) |
getParameterValue, setIfParam, setIfValue, setOnlyIfSessionKey, setOnlyIfValue, setSkipOnEmptyInput, setUnlessSessionKey, setUnlessValue, skipPipe
addParameter, consumesSessionVariable, createBean, findForward, getAdapter, getEventSourceName, getForwards, getInSizeStatDummyObject, getOutSizeStatDummyObject, getParameterList, hasSizeStatistics, registerEvent, registerForward, setApplicationContext, setChompCharSize, setDurationThreshold, setElementToMove, setElementToMoveChain, setElementToMoveSessionKey, setEmptyInputReplacement, setGetInputFromFixedValue, setGetInputFromSessionKey, setHideRegex, setLocker, setLogIntermediaryResults, setMaxThreads, setName, setPreserveInput, setRemoveCompactMsgNamespaces, setRestoreMovedElements, setSecLogSessionKeys, setSizeStatistics, setStoreResultInSessionKey, setWriteToSecLog, start, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setName
consumesSessionVariable, getForwards, getMaxThreads, registerForward, start, stop
getName
getApplicationContext, getName
getConfigurationClassLoader
setApplicationContext
getName
getChompCharSize, getDurationThreshold, getElementToMove, getElementToMoveChain, getElementToMoveSessionKey, getEmptyInputReplacement, getGetInputFromFixedValue, getGetInputFromSessionKey, getLocker, getSecLogSessionKeys, getStoreResultInSessionKey, isPreserveInput, isRemoveCompactMsgNamespaces, isRestoreMovedElements, isWriteToSecLog, setPipeLine, throwEvent
getTransactionAttribute, getTransactionTimeout, getTxDef, setTransactionAttribute
public void configure() throws ConfigurationException
FixedForwardPipe
configure
in interface IConfigurable
configure
in interface IPipe
configure
in class FixedForwardPipe
ConfigurationException
public final PipeRunResult doPipe(Message message, PipeLineSession session) throws PipeRunException
IPipe
FixedResultPipe
, the Pipe
can schedule the input to be closed at session exit, by calling Message.closeOnCloseOf(PipeLineSession, String)
This allows the previous Pipe to release any resources (e.g. connections) that it might have kept open
until the message was consumed. Doing so avoids connections leaking from pools, while it enables
efficient streaming processing of data while it is being read from a stream.doPipe
in interface IPipe
PipeRunException
public PipeRunResult validate(Message message, PipeLineSession session, String messageRoot) throws PipeRunException
validate
in interface IValidator
PipeRunException
public PipeRunResult doPipe(Message input, PipeLineSession session, boolean responseMode, String messageRoot) throws PipeRunException
PipeRunException
protected final PipeForward validate(String messageToValidate, PipeLineSession session) throws PipeRunException, XmlValidatorException, ConfigurationException
protected abstract PipeForward validate(Message messageToValidate, PipeLineSession session, boolean responseMode, String messageRoot) throws PipeRunException, XmlValidatorException, ConfigurationException
protected PipeForward determineForward(AbstractXmlValidator.ValidationResult validationResult, PipeLineSession session, boolean responseMode, Supplier<String> errorMessageProvider) throws PipeRunException
PipeRunException
protected boolean isConfiguredForMixedValidation()
public IValidator getResponseValidator()
getResponseValidator
in interface IDualModeValidator
public void setSchemaSessionKey(String schemaSessionKey)
public void setRoot(String root)
public void setResponseRoot(String responseRoot)
@Deprecated @ConfigurationWarning(value="please specify a forward with name=failure instead") public void setForwardFailureToSuccess(boolean b)
true
, the failure forward is replaced by the success forward (like a warning mode)Copyright © 2023 Frank!Framework. All rights reserved.