Class FormUrlEncodedMessageValidator
- java.lang.Object
-
- com.consol.citrus.http.validation.FormUrlEncodedMessageValidator
-
- All Implemented Interfaces:
MessageValidator<com.consol.citrus.validation.context.ValidationContext>
public class FormUrlEncodedMessageValidator extends Object implements MessageValidator<com.consol.citrus.validation.context.ValidationContext>
Validates x-www-form-urlencoded HTML form data content by marshalling form fields to Xml representation.- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_XML_MESSAGE_VALIDATOR
static String
MESSAGE_TYPE
Message type this validator is bound to-
Fields inherited from interface com.consol.citrus.validation.MessageValidator
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description FormUrlEncodedMessageValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supportsMessageType(String messageType, Message message)
void
validateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<com.consol.citrus.validation.context.ValidationContext> validationContexts)
-
-
-
Field Detail
-
MESSAGE_TYPE
public static final String MESSAGE_TYPE
Message type this validator is bound to- See Also:
- Constant Field Values
-
DEFAULT_XML_MESSAGE_VALIDATOR
public static final String DEFAULT_XML_MESSAGE_VALIDATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateMessage
public void validateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<com.consol.citrus.validation.context.ValidationContext> validationContexts) throws com.consol.citrus.exceptions.ValidationException
- Specified by:
validateMessage
in interfaceMessageValidator<com.consol.citrus.validation.context.ValidationContext>
- Throws:
com.consol.citrus.exceptions.ValidationException
-
supportsMessageType
public boolean supportsMessageType(String messageType, Message message)
- Specified by:
supportsMessageType
in interfaceMessageValidator<com.consol.citrus.validation.context.ValidationContext>
-
-