modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T extractFromHeader(final String headerName, final String variable) {
        if (headerExtractor == null) {
            headerExtractor = new MessageHeaderVariableExtractor();

            getAction().getVariableExtractors().add(headerExtractor);
        }
        
        headerExtractor.getHeaderMappings().put(headerName, variable);
        return self;
    }
/**
     * Extract message header entry as variable.
     * @param headerName
     * @param variable
     * @return
     */
Extract message header entry as variable.
@param headerName
@param variable
@return
Extract message header entry as variable . @param headerName @param variable @return
public T extractFromHeader(final String headerName, final String variable) {
        if (headerExtractor == null) {
            headerExtractor = new MessageHeaderVariableExtractor();
            getAction().getVariableExtractors().add(headerExtractor);
        }
        headerExtractor.getHeaderMappings().put(headerName, variable);
        return self;
    }
public T extractFromHeader ( final String headerName , final String variable ) { if ( headerExtractor == null ) { headerExtractor = new MessageHeaderVariableExtractor ( ) ; getAction ( ) . getVariableExtractors ( ) . add ( headerExtractor ) ; } headerExtractor . getHeaderMappings ( ) . put ( headerName , variable ) ; return self ; }
Extract message header entry as variable.
Extract message header entry as variable .