modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T header(final Resource resource, final Charset charset) {
        try {
            getMessageContentBuilder().getHeaderData().add(FileUtils.readToString(resource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read header resource", e);
        }

        return self;
    }
/**
     * Expect this message header data in received message from file resource. Message header data is used in
     * SOAP messages as XML fragment for instance.
     * @param resource
     * @param charset
     * @return
     */
Expect this message header data in received message from file resource. Message header data is used in
SOAP messages as XML fragment for instance.
@param resource
@param charset
@return
Expect this message header data in received message from file resource . Message header data is used in SOAP messages as XML fragment for instance . @param resource @param charset @return
public T header(final Resource resource, final Charset charset) {
        try {
            getMessageContentBuilder().getHeaderData().add(FileUtils.readToString(resource, charset));
        } catch (final IOException e) {
            throw new CitrusRuntimeException("Failed to read header resource", e);
        }
        return self;
    }
public T header ( final Resource resource , final Charset charset ) { try { getMessageContentBuilder ( ) . getHeaderData ( ) . add ( FileUtils . readToString ( resource , charset ) ) ; } catch ( final IOException e ) { throw new CitrusRuntimeException ( "Failed to read header resource" , e ) ; } return self ; }
Expect this message header data in received message from file resource.
Expect this message header data in received message from file resource .