org.springframework.jms.support.JmsHeaderMapper Java Examples

The following examples show how to use org.springframework.jms.support.JmsHeaderMapper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MessagingMessageConverter.java    From spring-analysis-note with MIT License 5 votes vote down vote up
/**
 * Create an instance with the specified payload converter and
 * header mapper.
 */
public MessagingMessageConverter(MessageConverter payloadConverter, JmsHeaderMapper headerMapper) {
	Assert.notNull(payloadConverter, "PayloadConverter must not be null");
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.payloadConverter = payloadConverter;
	this.headerMapper = headerMapper;
}
 
Example #2
Source File: MessagingMessageConverter.java    From java-technology-stack with MIT License 5 votes vote down vote up
/**
 * Create an instance with the specified payload converter and
 * header mapper.
 */
public MessagingMessageConverter(MessageConverter payloadConverter, JmsHeaderMapper headerMapper) {
	Assert.notNull(payloadConverter, "PayloadConverter must not be null");
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.payloadConverter = payloadConverter;
	this.headerMapper = headerMapper;
}
 
Example #3
Source File: MessagingMessageConverter.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
/**
 * Create an instance with the specified payload converter and
 * header mapper.
 */
public MessagingMessageConverter(MessageConverter payloadConverter, JmsHeaderMapper headerMapper) {
	Assert.notNull(payloadConverter, "PayloadConverter must not be null");
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.payloadConverter = payloadConverter;
	this.headerMapper = headerMapper;
}
 
Example #4
Source File: AbstractAdaptableMessageListener.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} implementation to use to map the standard
 * JMS headers. By default, a {@link SimpleJmsHeaderMapper} is used.
 * @see SimpleJmsHeaderMapper
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.messagingMessageConverter.setHeaderMapper(headerMapper);
}
 
Example #5
Source File: MessagingMessageConverter.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} to use to map JMS headers to and from
 * standard message headers.
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	this.headerMapper = headerMapper;
}
 
Example #6
Source File: AbstractAdaptableMessageListener.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} implementation to use to map the standard
 * JMS headers. By default, a {@link SimpleJmsHeaderMapper} is used.
 * @see SimpleJmsHeaderMapper
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.messagingMessageConverter.setHeaderMapper(headerMapper);
}
 
Example #7
Source File: MessagingMessageConverter.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} to use to map JMS headers to and from
 * standard message headers.
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	this.headerMapper = headerMapper;
}
 
Example #8
Source File: AbstractAdaptableMessageListener.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} implementation to use to map the standard
 * JMS headers. By default, a {@link SimpleJmsHeaderMapper} is used.
 * @see SimpleJmsHeaderMapper
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	Assert.notNull(headerMapper, "HeaderMapper must not be null");
	this.messagingMessageConverter.setHeaderMapper(headerMapper);
}
 
Example #9
Source File: MessagingMessageConverter.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Set the {@link JmsHeaderMapper} to use to map JMS headers to and from
 * standard message headers.
 */
public void setHeaderMapper(JmsHeaderMapper headerMapper) {
	this.headerMapper = headerMapper;
}