Example usage for org.springframework.integration.mapping AbstractHeaderMapper STANDARD_REQUEST_HEADER_NAME_PATTERN

List of usage examples for org.springframework.integration.mapping AbstractHeaderMapper STANDARD_REQUEST_HEADER_NAME_PATTERN

Introduction

In this page you can find the example usage for org.springframework.integration.mapping AbstractHeaderMapper STANDARD_REQUEST_HEADER_NAME_PATTERN.

Prototype

String STANDARD_REQUEST_HEADER_NAME_PATTERN

To view the source code for org.springframework.integration.mapping AbstractHeaderMapper STANDARD_REQUEST_HEADER_NAME_PATTERN.

Click Source Link

Document

A special pattern that only matches standard request headers.

Usage

From source file:org.springframework.integration.x.rabbit.RabbitChannelRegistry.java

public RabbitChannelRegistry(ConnectionFactory connectionFactory) {
    Assert.notNull(connectionFactory, "connectionFactory must not be null");
    this.connectionFactory = connectionFactory;
    this.rabbitTemplate.setConnectionFactory(connectionFactory);
    this.rabbitTemplate.afterPropertiesSet();
    this.rabbitAdmin = new RabbitAdmin(connectionFactory);
    this.rabbitAdmin.afterPropertiesSet();
    this.mapper = new DefaultAmqpHeaderMapper();
    this.mapper.setRequestHeaderNames(new String[] { AbstractHeaderMapper.STANDARD_REQUEST_HEADER_NAME_PATTERN,
            ORIGINAL_CONTENT_TYPE_HEADER });
}

From source file:org.springframework.integration.x.rabbit.RabbitMessageBus.java

public RabbitMessageBus(ConnectionFactory connectionFactory, MultiTypeCodec<Object> codec) {
    Assert.notNull(connectionFactory, "connectionFactory must not be null");
    Assert.notNull(codec, "codec must not be null");
    this.connectionFactory = connectionFactory;
    this.rabbitTemplate.setConnectionFactory(connectionFactory);
    this.rabbitTemplate.afterPropertiesSet();
    this.rabbitAdmin = new RabbitAdmin(connectionFactory);
    this.autoDeclareContext.refresh();
    this.rabbitAdmin.setApplicationContext(this.autoDeclareContext);
    this.rabbitAdmin.afterPropertiesSet();
    this.mapper = new DefaultAmqpHeaderMapper();
    this.mapper.setRequestHeaderNames(new String[] { AbstractHeaderMapper.STANDARD_REQUEST_HEADER_NAME_PATTERN,
            ORIGINAL_CONTENT_TYPE_HEADER });
    this.setCodec(codec);
}