Class FormUrlEncodedMessageValidator
java.lang.Object
org.citrusframework.http.validation.FormUrlEncodedMessageValidator
- All Implemented Interfaces:
MessageValidator<org.citrusframework.validation.context.ValidationContext>
public class FormUrlEncodedMessageValidator
extends Object
implements MessageValidator<org.citrusframework.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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringMessage type this validator is bound toFields inherited from interface org.citrusframework.validation.MessageValidator
RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansupportsMessageType(String messageType, Message message) voidvalidateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<org.citrusframework.validation.context.ValidationContext> validationContexts)
-
Field Details
-
MESSAGE_TYPE
Message type this validator is bound to- See Also:
-
DEFAULT_XML_MESSAGE_VALIDATOR
- See Also:
-
-
Constructor Details
-
FormUrlEncodedMessageValidator
public FormUrlEncodedMessageValidator()
-
-
Method Details
-
validateMessage
public void validateMessage(Message receivedMessage, Message controlMessage, TestContext context, List<org.citrusframework.validation.context.ValidationContext> validationContexts) throws org.citrusframework.exceptions.ValidationException - Specified by:
validateMessagein interfaceMessageValidator<org.citrusframework.validation.context.ValidationContext>- Throws:
org.citrusframework.exceptions.ValidationException
-
supportsMessageType
- Specified by:
supportsMessageTypein interfaceMessageValidator<org.citrusframework.validation.context.ValidationContext>
-