From 3605950590b17727597e40a5890c5d927e6f0b64 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 17 Jan 2011 17:12:56 -0500 Subject: [PATCH] added PRIORITY, SEQUENCE_SIZE, and SEQUENCE_NUNBER to the DEFAULT_HEADER_TYPES map in JsonInboundMessageMapper --- .../integration/json/JsonInboundMessageMapper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java b/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java index eeef944078..05c5eb6b8c 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/json/JsonInboundMessageMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2010 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ import org.springframework.util.Assert; * * @author Jeremy Grelle * @author Oleg Zhurakousky + * @author Mark Fisher * @since 2.0 */ public class JsonInboundMessageMapper implements InboundMessageMapper { @@ -50,9 +51,13 @@ public class JsonInboundMessageMapper implements InboundMessageMapper { private static final Map> DEFAULT_HEADER_TYPES = new HashMap>(); static { + DEFAULT_HEADER_TYPES.put(MessageHeaders.PRIORITY, Integer.class); DEFAULT_HEADER_TYPES.put(MessageHeaders.EXPIRATION_DATE, Long.class); + DEFAULT_HEADER_TYPES.put(MessageHeaders.SEQUENCE_SIZE, Integer.class); + DEFAULT_HEADER_TYPES.put(MessageHeaders.SEQUENCE_NUMBER, Integer.class); } + private final JavaType payloadType; private final Map> headerTypes = DEFAULT_HEADER_TYPES;