modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T messageType(final String messageType) {
        this.messageType = messageType;
        getAction().setMessageType(messageType);

        if (getAction().getValidationContexts().isEmpty()) {
            getAction().getValidationContexts().add(headerValidationContext);
            getAction().getValidationContexts().add(xmlMessageValidationContext);
            getAction().getValidationContexts().add(jsonMessageValidationContext);
        }

        return self;
    }
/**
     * Sets a explicit message type for this receive action.
     * @param messageType
     * @return
     */
Sets a explicit message type for this receive action.
@param messageType
@return
Sets a explicit message type for this receive action . @param messageType @return
public T messageType(final String messageType) {
        this.messageType = messageType;
        getAction().setMessageType(messageType);
        if (getAction().getValidationContexts().isEmpty()) {
            getAction().getValidationContexts().add(headerValidationContext);
            getAction().getValidationContexts().add(xmlMessageValidationContext);
            getAction().getValidationContexts().add(jsonMessageValidationContext);
        }
        return self;
    }
public T messageType ( final String messageType ) { this . messageType = messageType ; getAction ( ) . setMessageType ( messageType ) ; if ( getAction ( ) . getValidationContexts ( ) . isEmpty ( ) ) { getAction ( ) . getValidationContexts ( ) . add ( headerValidationContext ) ; getAction ( ) . getValidationContexts ( ) . add ( xmlMessageValidationContext ) ; getAction ( ) . getValidationContexts ( ) . add ( jsonMessageValidationContext ) ; } return self ; }
Sets a explicit message type for this receive action.
Sets a explicit message type for this receive action .