View Javadoc

1   /*
2    * $Id: JmsConstants.java 20321 2010-11-24 15:21:24Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.transport.jms;
12  
13  import java.util.Arrays;
14  import java.util.Collections;
15  import java.util.HashSet;
16  import java.util.Set;
17  
18  // @ThreadSafe
19  public class JmsConstants
20  {
21  
22      public static final String JMS_SPECIFICATION_102B = "1.0.2b";
23      public static final String JMS_SPECIFICATION_11 = "1.1";
24  
25      public static final String JMS_CORRELATION_ID = "JMSCorrelationID";
26      public static final String JMS_DELIVERY_MODE = "JMSDeliveryMode";
27      public static final String JMS_DESTINATION = "JMSDestination";
28      public static final String JMS_EXPIRATION = "JMSExpiration";
29      public static final String JMS_MESSAGE_ID = "JMSMessageID";
30      public static final String JMS_PRIORITY = "JMSPriority";
31      public static final String JMS_REDELIVERED = "JMSRedelivered";
32      public static final String JMS_REPLY_TO = "JMSReplyTo";
33      public static final String JMS_TIMESTAMP = "JMSTimestamp";
34      public static final String JMS_TYPE = "JMSType";
35  
36      // extended properties
37      public static final String JMS_X_DELIVERY_COUNT = "JMSXDeliveryCount";
38  
39      // QoS properties
40      public static final String TIME_TO_LIVE_PROPERTY = "timeToLive";
41      public static final String PERSISTENT_DELIVERY_PROPERTY = "persistentDelivery";
42      public static final String PRIORITY_PROPERTY = "priority";
43      public static final String JMS_SELECTOR_PROPERTY = "selector";
44      public static final String TOPIC_PROPERTY = "topic";
45      public static final String DURABLE_PROPERTY = "durable";
46      public static final String DURABLE_NAME_PROPERTY = "durableName";
47      public static final String CACHE_JMS_SESSIONS_PROPERTY = "cacheJmsSessions";
48      public static final String DISABLE_TEMP_DESTINATIONS_PROPERTY = "disableTemporaryReplyToDestinations";
49      public static final String RETURN_ORIGINAL_MESSAGE_PROPERTY = "returnOriginalMessageAsReply";
50  
51      public static final Set JMS_PROPERTY_NAMES = Collections.unmodifiableSet(new HashSet(
52          Arrays.asList(new String[]{JMS_SPECIFICATION_102B, JMS_SPECIFICATION_11, JMS_CORRELATION_ID,
53              JMS_DELIVERY_MODE, JMS_DELIVERY_MODE, JMS_DESTINATION, JMS_EXPIRATION, JMS_MESSAGE_ID,
54              JMS_PRIORITY, JMS_REDELIVERED, JMS_REPLY_TO, JMS_TIMESTAMP, JMS_TYPE, JMS_SELECTOR_PROPERTY})));
55  
56  }