public abstract class ValidationHandler extends AbstractHandler
ValidationHandler is dedicated validation handler for content type. A handler specifies how to validate a
message type it can handle.| Constructor | Description |
|---|---|
ValidationHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
additionalAttributesProcess(ValidationContext context,
ValidationRequest validationRequest) |
Process the information contains in Additional Attributes of the request.
|
List<String> |
getAvailableBusinessRules(ValidationContext context) |
Gets available business rules.
|
Properties |
getConfig() |
Return the configuration.
|
abstract String |
handleErrors(ValidationContext context) |
Generic method that creates a string representation of the errors
|
boolean |
initContext(ValidationContext context) |
Generic Init method to initialize the ValidationContext component (such as Validator, Reader).
|
boolean |
initContext(ValidationContext context,
ValidationRequest validationRequest) |
Initialise ValidationContext based on ValidationRequest of the EVM interfaces.
|
abstract ValidationInput |
initInput(String[] args) |
Creates a
ValidationInput according to the arguments provided (i.e. |
String |
process(ValidationInput input,
ValidationContext context) |
Process a ValidationInput with a specific ValidationContext.
|
initContext, isApplicationDomainSupported, loadConfig, printHelp, validateContextpublic boolean initContext(ValidationContext context) throws ValidationException
initContext in class AbstractHandlercontext - Validation contextValidationException - Initialisation exceptionpublic String process(ValidationInput input, ValidationContext context) throws ValidationException
input - The input message to validatecontext - The validation contextValidationException - Validation exceptionpublic abstract String handleErrors(ValidationContext context)
context - the validation context containing the errorspublic Properties getConfig()
public abstract ValidationInput initInput(String[] args)
ValidationInput according to the arguments provided (i.e. filename of the xml to be
validated)args - the arguments provided by the userpublic boolean initContext(ValidationContext context, ValidationRequest validationRequest)
context - The validation contextvalidationRequest - the requestprotected void additionalAttributesProcess(ValidationContext context, ValidationRequest validationRequest)
context - the contextvalidationRequest - the requestpublic List<String> getAvailableBusinessRules(ValidationContext context)
context - the contextCopyright © 2025. All rights reserved.