KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > wsif > wsdl > extensions > jms > JMSConstants


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2002 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "WSIF" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation and was
52  * originally based on software copyright (c) 2001, 2002, International
53  * Business Machines, Inc., http://www.apache.org. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  */

57
58 package org.apache.wsif.wsdl.extensions.jms;
59
60 import javax.xml.namespace.QName JavaDoc;
61
62 import com.ibm.wsdl.Constants;
63
64 /**
65  * WSDL Jms extension
66  *
67  * @author <a HREF="mailto:ake@de.ibm.com">Hermann Akermann</a>
68  * @author Ant Elder <antelder@apache.org>
69  * @author Mark Whitlock <whitlock@apache.org>
70  */

71 public class JMSConstants {
72
73     // Namespace URIs.
74
public static final String JavaDoc NS_URI_JMS = "http://schemas.xmlsoap.org/wsdl/jms/";
75
76     // Element names.
77
public static final String JavaDoc ELEM_ADDRESS = "address";
78     public static final String JavaDoc ELEM_PROPERTY = "property";
79     public static final String JavaDoc ELEM_PROPERTY_VALUE = "propertyValue";
80     public static final String JavaDoc ELEM_INPUT = "input";
81     public static final String JavaDoc ELEM_OUTPUT = "output";
82     public static final String JavaDoc ELEM_FAULT = "fault";
83     public static final String JavaDoc ELEM_FAULT_INDICATOR = "faultIndicator";
84     public static final String JavaDoc ELEM_FAULT_PROPERTY = "faultProperty";
85     public static final String JavaDoc ATTR_MESSAGE_TYPE = "type";
86
87     // managed environment elements
88
public static final String JavaDoc ELEM_JMS_JMS_VENDOR_URI = "jmsVendorURI";
89     public static final String JavaDoc ELEM_JMS_INIT_CXT_FACT = "initialContextFactory";
90     public static final String JavaDoc ELEM_JMS_JNDI_PROV_URL = "jndiProviderURL";
91     public static final String JavaDoc ELEM_JMS_DEST_STYLE = "destinationStyle";
92     public static final String JavaDoc ELEM_JMS_JNDI_CONN_FACT_NAME =
93         "jndiConnectionFactoryName";
94         
95     public static final String JavaDoc ELEM_JMS_JNDI_DEST_NAME = "jndiDestinationName";
96     public static final String JavaDoc ELEM_JMS_JMS_PROV_DEST_NAME =
97         "jmsProviderDestinationName";
98         
99     public static final String JavaDoc ELEM_JMS_JMS_IMPL_SPEC_URI =
100         "jmsImplementationSpecificURI";
101         
102     public static final String JavaDoc ELEM_JMS_QUEUE = "queue";
103     public static final String JavaDoc ELEM_JMS_TOPIC = "topic";
104
105     // Jms Header, HeaderValue, Property, PropertyValue extension
106
public static final String JavaDoc ATTR_PART = "part";
107     public static final String JavaDoc ATTR_NAME = "name";
108     public static final String JavaDoc ATTR_TYPE = "type";
109     public static final String JavaDoc ATTR_VALUE = "value";
110
111     // Jms Header Field types
112
public static final int HEADER_TYPE_JMSMESSAGEID = 0;
113     public static final int HEADER_TYPE_JMSTIMESTAMP = 10;
114     public static final int HEADER_TYPE_JMSCORRELATIONID = 20;
115     public static final int HEADER_TYPE_JMSREPLYTO = 30;
116     public static final int HEADER_TYPE_JMSDESTINATION = 40;
117     public static final int HEADER_TYPE_JMSDELIVERYMODE = 50;
118     public static final int HEADER_TYPE_JMSREDELIVERED = 60;
119     public static final int HEADER_TYPE_JMSTYPE = 70;
120     public static final int HEADER_TYPE_JMSEXPIRATION = 80;
121     public static final int HEADER_TYPE_JMSPRIORITY = 90;
122
123     // Jms Input/Output extension
124
public static final String JavaDoc ATTR_PARTS = "parts";
125     public static final String JavaDoc ATTR_SCHEMA = "schema";
126
127     // Qualified element names.
128
public static final QName JavaDoc Q_ELEM_JMS_ADDRESS =
129         new QName JavaDoc(NS_URI_JMS, ELEM_ADDRESS);
130         
131     public static final QName JavaDoc Q_ELEM_JMS_BINDING =
132         new QName JavaDoc(NS_URI_JMS, Constants.ELEM_BINDING);
133         
134     public static final QName JavaDoc Q_ELEM_JMS_PROPERTY =
135         new QName JavaDoc(NS_URI_JMS, ELEM_PROPERTY);
136         
137     public static final QName JavaDoc Q_ELEM_JMS_PROPERTY_VALUE =
138         new QName JavaDoc(NS_URI_JMS, ELEM_PROPERTY_VALUE);
139         
140     public static final QName JavaDoc Q_ELEM_JMS_OPERATION =
141         new QName JavaDoc(NS_URI_JMS, Constants.ELEM_OPERATION);
142         
143     public static final QName JavaDoc Q_ELEM_JMS_INPUT =
144         new QName JavaDoc(NS_URI_JMS, ELEM_INPUT);
145         
146     public static final QName JavaDoc Q_ELEM_JMS_OUTPUT =
147         new QName JavaDoc(NS_URI_JMS, ELEM_OUTPUT);
148
149     public static final QName JavaDoc Q_ELEM_JMS_FAULT =
150         new QName JavaDoc(NS_URI_JMS, ELEM_FAULT);
151
152     public static final QName JavaDoc Q_ELEM_JMS_FAULT_INDICATOR =
153         new QName JavaDoc(NS_URI_JMS, ELEM_FAULT_INDICATOR);
154
155     public static final QName JavaDoc Q_ELEM_JMS_FAULT_PROPERTY =
156         new QName JavaDoc(NS_URI_JMS, ELEM_FAULT_PROPERTY);
157
158     // Jms message (body) types
159
public static final int MESSAGE_TYPE_NOTSET = 0;
160     public static final int MESSAGE_TYPE_BYTEMESSAGE = 10;
161     public static final int MESSAGE_TYPE_MAPMESSAGE = 20;
162     public static final int MESSAGE_TYPE_OBJECTMESSAGE = 30;
163     public static final int MESSAGE_TYPE_STREAMMESSAGE = 40;
164     public static final int MESSAGE_TYPE_TEXTMESSAGE = 50;
165 }
Popular Tags