View Javadoc

1   /*
2    * Copyright 2005-2012 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.springframework.ws.transport.jms;
18  
19  import javax.jms.BytesMessage;
20  import javax.jms.TextMessage;
21  
22  import org.springframework.ws.transport.TransportConstants;
23  
24  /**
25   * Declares JMS-specific transport constants.
26   *
27   * @author Arjen Poutsma
28   * @since 1.5.0
29   */
30  public interface JmsTransportConstants extends TransportConstants {
31  
32      /** The "jms" URI scheme" */
33      String JMS_URI_SCHEME = "jms";
34  
35      /** Indicates a {@link BytesMessage} type. */
36      int BYTES_MESSAGE_TYPE = 1;
37  
38      /** Indicates a {@link TextMessage} type. */
39      int TEXT_MESSAGE_TYPE = 2;
40  
41      /** Prefix for JMS properties that map to transport headers. */
42      String PROPERTY_PREFIX = "SOAPJMS_";
43  
44      /** JMS property used for storing {@link #HEADER_ACCEPT_ENCODING}. */
45      String PROPERTY_ACCEPT_ENCODING = PROPERTY_PREFIX + "acceptEncoding";
46  
47      /** JMS property used for storing {@link #HEADER_SOAP_ACTION}. */
48      String PROPERTY_SOAP_ACTION = PROPERTY_PREFIX + "soapAction";
49  
50      /** JMS property used for storing {@link #HEADER_CONTENT_LENGTH}. */
51      String PROPERTY_CONTENT_LENGTH = PROPERTY_PREFIX + "contentLength";
52  
53      /** JMS property used for storing {@link #HEADER_CONTENT_TYPE}. */
54      String PROPERTY_CONTENT_TYPE = PROPERTY_PREFIX + "contentType";
55  
56  }