public class PlainTextMessageValidator extends DefaultMessageValidator
Modifier and Type | Field and Description |
---|---|
static String |
IGNORE_NEWLINE_TYPE_ENV |
static String |
IGNORE_NEWLINE_TYPE_PROPERTY |
static String |
IGNORE_WHITESPACE_ENV |
static String |
IGNORE_WHITESPACE_PROPERTY |
log
Constructor and Description |
---|
PlainTextMessageValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isIgnoreNewLineType()
Gets the ignoreNewLineType.
|
boolean |
isIgnoreWhitespace()
Gets the ignoreWhitespace.
|
void |
setIgnoreNewLineType(boolean ignoreNewLineType)
Sets the ignoreNewLineType.
|
void |
setIgnoreWhitespace(boolean ignoreWhitespace)
Sets the ignoreWhitespace.
|
boolean |
supportsMessageType(String messageType,
Message message)
Checks if this message validator is capable of this message type.
|
void |
validateMessage(Message receivedMessage,
Message controlMessage,
TestContext context,
ValidationContext validationContext)
Validates message with most appropriate validation context.
|
getRequiredValidationContextType
findValidationContext, validateMessage
public static final String IGNORE_NEWLINE_TYPE_PROPERTY
public static final String IGNORE_NEWLINE_TYPE_ENV
public static final String IGNORE_WHITESPACE_PROPERTY
public static final String IGNORE_WHITESPACE_ENV
public void validateMessage(Message receivedMessage, Message controlMessage, TestContext context, ValidationContext validationContext) throws ValidationException
AbstractMessageValidator
validateMessage
in class AbstractMessageValidator<ValidationContext>
ValidationException
public boolean supportsMessageType(String messageType, Message message)
MessageValidator
MessageValidatorRegistry
in order to find a proper message validator for a message.supportsMessageType
in interface MessageValidator<ValidationContext>
supportsMessageType
in class DefaultMessageValidator
messageType
- the message type representation as String (e.g. xml, json, csv, plaintext).message
- the message objectpublic boolean isIgnoreWhitespace()
public void setIgnoreWhitespace(boolean ignoreWhitespace)
ignoreWhitespace
- public boolean isIgnoreNewLineType()
public void setIgnoreNewLineType(boolean ignoreNewLineType)
ignoreNewLineType
- Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.