Class HeaderValidationContext
java.lang.Object
org.citrusframework.validation.context.HeaderValidationContext
- All Implemented Interfaces:
ValidationContext
- Since:
- 2.7.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFluent builder. -
Field Summary
Fields inherited from interface org.citrusframework.validation.context.ValidationContext
logger, RESOURCE_PATH, TYPE_RESOLVER -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeaderValidator(String validatorName) Adds header validator reference.voidaddHeaderValidator(HeaderValidator validator) Adds header validator.Marks the validation result for this context.Gets the validatorNames.Gets the validators.booleanGets the headerNameIgnoreCase.voidupdateStatus(ValidationStatus status) Update the validation status if it is allowed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.validation.context.ValidationContext
requiresValidator
-
Constructor Details
-
HeaderValidationContext
public HeaderValidationContext() -
HeaderValidationContext
-
-
Method Details
-
isHeaderNameIgnoreCase
public boolean isHeaderNameIgnoreCase()Gets the headerNameIgnoreCase.- Returns:
-
addHeaderValidator
Adds header validator.- Parameters:
validator-
-
addHeaderValidator
Adds header validator reference.- Parameters:
validatorName-
-
getValidators
Gets the validators.- Returns:
-
getValidatorNames
Gets the validatorNames.- Returns:
-
updateStatus
Description copied from interface:ValidationContextUpdate the validation status if it is allowed.- Specified by:
updateStatusin interfaceValidationContext- Parameters:
status- the new status.
-
getStatus
Description copied from interface:ValidationContextMarks the validation result for this context. By default, all validation context do have the status UNKNOWN marking that the validation has not performed yet. Validators must set proper status after the validation to mark the context as being processed.- Specified by:
getStatusin interfaceValidationContext- Returns:
- the status indicating the validation result for this context.
-