@Category(value="Basic") public class JsonValidator extends ValidatorBase
ValidatorBase.ResponseValidatorWrapper
parameterNamesMustBeUnique
log
LONG_DURATION_MONITORING_EVENT, MESSAGE_SIZE_MONITORING_EVENT, PIPE_EXCEPTION_MONITORING_EVENT
Constructor and Description |
---|
JsonValidator() |
Modifier and Type | Method and Description |
---|---|
void |
configure()
checks for correct configuration of forward
|
protected org.leadpony.justify.api.JsonSchema |
getJsonSchema() |
void |
setReasonSessionKey(String reasonSessionKey)
If set: key of session variable to store reasons of mis-validation in
|
void |
setSchema(String schema)
The JSON Schema to validate to
|
void |
setSubSchemaPrefix(String prefix)
Prefix to element name to find subschema in schema
|
void |
start()
Perform necessary action to start the pipe.
|
protected PipeForward |
validate(Message messageToValidate,
PipeLineSession session,
boolean responseMode,
String messageRoot) |
determineForward, doPipe, doPipe, getResponseValidator, isConfiguredForMixedValidation, setForwardFailureToSuccess, setResponseRoot, setRoot, setSchemaSessionKey, validate, validate
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, stop, throwEvent
configureTransactionAttributes, isTransacted, isTransacted, setTransacted, setTransactionTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setName
consumesSessionVariable, getForwards, getMaxThreads, registerForward, 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 ValidatorBase
ConfigurationException
public void start() throws PipeStartException
IPipe
IPipe.configure()
method, for each start and stop command of the
adapter.start
in interface IPipe
start
in class AbstractPipe
PipeStartException
protected PipeForward validate(Message messageToValidate, PipeLineSession session, boolean responseMode, String messageRoot) throws PipeRunException
validate
in class ValidatorBase
PipeRunException
protected org.leadpony.justify.api.JsonSchema getJsonSchema() throws IOException
IOException
public void setSchema(String schema)
public void setSubSchemaPrefix(String prefix)
public void setReasonSessionKey(String reasonSessionKey)
Copyright © 2023 Frank!Framework. All rights reserved.