View Javadoc

1   /*
2    * $Id: Constants.java,v 1.1 2004/12/15 14:18:20 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.util;
10  
11  import java.util.ArrayList;
12  import java.util.List;
13  
14  import javax.xml.namespace.QName;
15  
16  /***
17   * Contains a number of constants that are used throughout the project.
18   * 
19   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:20 $
20   * @author Patric Fornasier
21   */
22  public class Constants {
23  
24      /*
25       * BEXEE PROPERTIES
26       */
27  
28      /***
29       * bexee <code>DAOFactory</code> option
30       */
31      public static final String OPT_DAO_FACTORY = "bexee.dao.factory";
32  
33      /***
34       * bexee <code>DAOFactory</code> default implementation
35       */
36      public static final String OPT_DAO_FACTORY_DEF = "bexee.dao.MemoryDAOFactory";
37  
38      /***
39       * bexee <code>ProcessController</code> option
40       */
41      public static final String OPT_CONTROLLER = "bexee.controller";
42  
43      /***
44       * bexee <code>ProcessController</code> default implementation
45       */
46      public static final String OPT_CONTROLLER_DEF = "bexee.core.ProcessControllerImpl";
47  
48      /***
49       * bexee Manager Web Service URL option
50       */
51      public static final String OPT_MANAGER_URL = "bexee.manager.url";
52  
53      /***
54       * bexee Manager Web Service default URL
55       */
56      public static final String OPT_MANAGER_URL_DEF = "http://localhost:8080/bexee/services/Manager";
57  
58      /***
59       * bexee <code>BPELProcessFactory</code> option
60       */
61      public static final String OPT_PROCESS_FACTORY = "bexee.process.factory";
62  
63      /***
64       * bexee <code>BPELProcessFactory</code> default implementation
65       */
66      public static final String OPT_PROCESS_FACTORY_DEF = "bexee.model.BPELProcessFactoryImpl";
67  
68      /*
69       * URIs
70       */
71  
72      /***
73       * BPEL Namespace URI
74       */
75      public static final String NS_URI_BPEL = "http://schemas.xmlsoap.org/ws/2003/03/business-process/";
76  
77      /***
78       * WSDL Namespace URI
79       */
80      public static final String NS_URI_WSDL = "http://schemas.xmlsoap.org/wsdl/";
81  
82      /***
83       * bexee Namespace URI
84       */
85      public static final String NS_URI_BEXEE = "http://bexee.sourceforge.net";
86  
87      /***
88       * XML Schema schema uri
89       */
90      public static final String URI_SCHEMA_XSD = "http://www.w3.org/2001/XMLSchema";
91  
92      /***
93       * XML Schema-instance uri
94       */
95      public static final String URI_SCHEMA_XSI = "http://www.w3.org/2001/XMLSchema-instance";
96  
97      public static final String RPC_STYLE = "rpc";
98  
99      public static final String DOCUMENT_STYLE = "document";
100 
101     public static final String DEFAULT_STYLE = Constants.RPC_STYLE;
102 
103     public static final String ENCODED = "encoded";
104 
105     public static final String LITERAL = "literal";
106 
107     public static final String DEFAULT_USE = ENCODED;
108 
109     public static final String URI_SOAP_HTTP = "http://schemas.xmlsoap.org/soap/http";
110 
111     public static final String SERVICE_SUFFIX = "Service";
112 
113     public static final String WSDL_PRFIX = "wsdl";
114 
115     public static final String URI_WSDL = "http://schemas.xmlsoap.org/wsdl/";
116 
117     public static final String WSDL_SOAP_PPREFIX = "wsdlsoap";
118 
119     public static final String URI_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
120 
121     public static final String SOAP_BINDING_SUFFIX = "SoapBinding";
122 
123     public static final String BINDING_ELEM = "binding";
124 
125     public static final String OPERATION_ELEM = "operation";
126 
127     public static final String BODY_ELEM = "body";
128 
129     public static final String FAULT_ELEM = "fault";
130 
131     public static final String ADDRESS_ELEM = "address";
132 
133     public static final QName SOAP_BINDING_QNAME = new QName(URI_WSDL_SOAP,
134             BINDING_ELEM);
135 
136     public static final QName WSDL_OPERATION_QNAME = new QName(URI_WSDL,
137             OPERATION_ELEM);
138 
139     public static final QName SOAP_OPERATION_QNAME = new QName(URI_WSDL_SOAP,
140             OPERATION_ELEM);
141 
142     public static final QName SOAP_BODY_QNAME = new QName(URI_WSDL_SOAP,
143             BODY_ELEM);
144 
145     public static final QName SOAP_ADDRESS_QNAME = new QName(URI_WSDL_SOAP,
146             ADDRESS_ELEM);
147 
148     public static final String ENCODING_STYLE = "http://schemas.xmlsoap.org/soap/encoding/";
149 
150     public static final List ENCODING_STYLES = new ArrayList();
151 
152     public static final QName SOAP_FAULT_QNAME = new QName(URI_WSDL_SOAP,
153             FAULT_ELEM);
154 
155     static {
156         ENCODING_STYLES.add(ENCODING_STYLE);
157     }
158 
159 }