001: /*
002: * $Id: Constants.java,v 1.11 2004/12/09 12:34:45 kowap Exp $
003: *
004: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
005: * Berne University of Applied Sciences
006: * School of Engineering and Information Technology
007: * All rights reserved.
008: */
009: package bexee.util;
010:
011: import java.util.ArrayList;
012: import java.util.List;
013:
014: import javax.xml.namespace.QName;
015:
016: /**
017: * Contains a number of constants that are used throughout the project.
018: *
019: * @version $Revision: 1.11 $, $Date: 2004/12/09 12:34:45 $
020: * @author Patric Fornasier
021: */
022: public class Constants {
023:
024: /*
025: * BEXEE PROPERTIES
026: */
027:
028: /**
029: * bexee <code>DAOFactory</code> option
030: */
031: public static final String OPT_DAO_FACTORY = "bexee.dao.factory";
032:
033: /**
034: * bexee <code>DAOFactory</code> default implementation
035: */
036: public static final String OPT_DAO_FACTORY_DEF = "bexee.dao.MemoryDAOFactory";
037:
038: /**
039: * bexee <code>ProcessController</code> option
040: */
041: public static final String OPT_CONTROLLER = "bexee.controller";
042:
043: /**
044: * bexee <code>ProcessController</code> default implementation
045: */
046: public static final String OPT_CONTROLLER_DEF = "bexee.core.ProcessControllerImpl";
047:
048: /**
049: * bexee Manager Web Service URL option
050: */
051: public static final String OPT_MANAGER_URL = "bexee.manager.url";
052:
053: /**
054: * bexee Manager Web Service default URL
055: */
056: public static final String OPT_MANAGER_URL_DEF = "http://localhost:8080/bexee/services/Manager";
057:
058: /**
059: * bexee <code>BPELProcessFactory</code> option
060: */
061: public static final String OPT_PROCESS_FACTORY = "bexee.process.factory";
062:
063: /**
064: * bexee <code>BPELProcessFactory</code> default implementation
065: */
066: public static final String OPT_PROCESS_FACTORY_DEF = "bexee.model.BPELProcessFactoryImpl";
067:
068: /*
069: * URIs
070: */
071:
072: /**
073: * BPEL Namespace URI
074: */
075: public static final String NS_URI_BPEL = "http://schemas.xmlsoap.org/ws/2003/03/business-process/";
076:
077: /**
078: * WSDL Namespace URI
079: */
080: public static final String NS_URI_WSDL = "http://schemas.xmlsoap.org/wsdl/";
081:
082: /**
083: * bexee Namespace URI
084: */
085: public static final String NS_URI_BEXEE = "http://bexee.sourceforge.net";
086:
087: /**
088: * XML Schema schema uri
089: */
090: public static final String URI_SCHEMA_XSD = "http://www.w3.org/2001/XMLSchema";
091:
092: /**
093: * XML Schema-instance uri
094: */
095: public static final String URI_SCHEMA_XSI = "http://www.w3.org/2001/XMLSchema-instance";
096:
097: public static final String RPC_STYLE = "rpc";
098:
099: 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(
134: URI_WSDL_SOAP, BINDING_ELEM);
135:
136: public static final QName WSDL_OPERATION_QNAME = new QName(
137: URI_WSDL, OPERATION_ELEM);
138:
139: public static final QName SOAP_OPERATION_QNAME = new QName(
140: URI_WSDL_SOAP, OPERATION_ELEM);
141:
142: public static final QName SOAP_BODY_QNAME = new QName(
143: URI_WSDL_SOAP, BODY_ELEM);
144:
145: public static final QName SOAP_ADDRESS_QNAME = new QName(
146: URI_WSDL_SOAP, 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(
153: URI_WSDL_SOAP, FAULT_ELEM);
154:
155: static {
156: ENCODING_STYLES.add(ENCODING_STYLE);
157: }
158:
159: }
|