001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)SOAPConstants.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.common.soap;
030:
031: import java.util.logging.Level;
032:
033: /**
034: * This is a constants repository and is used by all SOAP binding components running in
035: * the JBI container.
036: *
037: * @author Sun Microsystems, Inc.
038: */
039: public interface SOAPConstants {
040: /**
041: * Default value for max threads.
042: */
043: int DEFAULT_MAX_THREADS = 10;
044:
045: /**
046: * Default value for min threads.
047: */
048: int DEFAULT_MIN_THREADS = 2;
049:
050: /**
051: * Default Thread sleep time in milliseconds.
052: */
053: int DEFAULT_THREAD_SLEEP_TIME = 100;
054:
055: /**
056: * Message Context property which holds fault string.
057: */
058: String FAULT_STRING_PROPERTY_NAME = "FAULT_STRING";
059:
060: /**
061: * Message Context property which holds fault actor name.
062: */
063: String FAULT_CODE_PROPERTY_NAME = "FAULT_ACTOR";
064:
065: /**
066: * Message Context property which holds SOAP header information.
067: */
068: String HEADER_PROPERTY_NAME = "SoapHeader";
069:
070: /**
071: * Message Context property which holds soap action value.
072: */
073: String SOAP_ACTION_PROPERTY_NAME = "SOAP_ACTION_URI";
074:
075: /**
076: * Message context property which hold http response code.
077: */
078: String HTTP_RESPONSE_CODE = "HTTP_RESPONSE_CODE";
079:
080: /**
081: * Indicates that an exception has been thrown while the request was being processed.
082: */
083: int INTERNAL_SERVER_ERROR = 401;
084:
085: /**
086: * Indicates that the service could not be invoked in the specified time.
087: */
088: int SERVICE_TIMEOUT = 403;
089:
090: /**
091: * Indicates that the request does not conform to the request format.
092: */
093: int BAD_REQUEST_FORMAT = 404;
094:
095: /**
096: * Indicates that the endpoint does not support the current operation.
097: */
098: int OPERATION_NOT_SUPPORTED = 405;
099:
100: /**
101: * Indicates that an endpoint has been deployed for the service URL and that engine
102: * has not activated the inbound service channel.
103: */
104: int SERVICE_NOT_ACTIVATED = 406;
105:
106: /**
107: * Indicates that the request message conforms to XML standards but not to SOAP
108: * standards.
109: */
110: int INVALID_SOAP_REQUEST_MESSAGE = 412;
111:
112: /**
113: * Indicates that an error has been set in the Message Exchange.
114: */
115: int JBI_ERROR = 103;
116:
117: /**
118: * Indicates that a fault has been set in the Message Exchange.
119: */
120: int JBI_FAULT = 102;
121:
122: /**
123: * Indicates that the message has been successfully processed.
124: */
125: int JBI_SUCCESS = 101;
126:
127: /**
128: * Indicates that the message processing has been completed.
129: */
130: int JBI_DONE = 100;
131:
132: /**
133: * In_Only Pattern name.
134: */
135: String IN_ONLY_PATTERN = "in-only";
136:
137: /**
138: * Robust In_Only Pattern name.
139: */
140: String ROBUST_IN_ONLY_PATTERN = "robust-in-only";
141:
142: /**
143: * In_Optional_Out Pattern name.
144: */
145: String IN_OPTIONAL_OUT_PATTERN = "in-opt-out";
146:
147: /**
148: * In_Out Pattern name.
149: */
150: String IN_OUT_PATTERN = "in-out";
151:
152: /**
153: * Out_Only Pattern name.
154: */
155: String OUT_ONLY_PATTERN = "out-only";
156:
157: /**
158: * Out_In Pattern name.
159: */
160: String ROBUST_OUT_ONLY_PATTERN = "robust-out-only";
161:
162: /**
163: * Out_In Pattern name.
164: */
165: String OUT_OPTIONAL_IN_PATTERN = "out-opt-in";
166:
167: /**
168: * Out_In Pattern name.
169: */
170: String OUT_IN_PATTERN = "out-in";
171:
172: /**
173: * HTTP Scheme identifier.
174: */
175: String HTTP_SCHEME = "http";
176:
177: /**
178: * HTTPS Scheme identifier.
179: */
180: String HTTPS_SCHEME = "https";
181:
182: /**
183: * RPC Style.
184: */
185: String RPC_STYLE = "rpc";
186:
187: /**
188: * Document Style.
189: */
190: String DOCUMENT_STYLE = "document";
191:
192: /**
193: * Property which holds the registry File Name.
194: */
195: String REGISTRY_FILE_NAME = "REGISTRY_FILE_NAME";
196:
197: /**
198: * Property which holds the registry file location.
199: */
200: String REGISTRY_FILE_LOCATION = "REGISTRY_FILE_LOCATION";
201:
202: /**
203: * Schema directory name.
204: */
205: String SCHEMA_DIR_NAME = "schema";
206:
207: /**
208: * UTF 8.
209: */
210: String UTF_8 = "utf-8";
211:
212: /**
213: * UTF-16 representation.
214: */
215: String UTF_16 = "utf-16";
216:
217: /**
218: * XML Content Type.
219: */
220: String XML_CONTENT_TYPE = "text/xml";
221:
222: /**
223: * XML Content Type value which also contains the charset.
224: */
225: String XML_CONTENT_TYPE_CHARSET_UTF8 = "text/xml;charset=utf-8";
226:
227: /**
228: * XML Content Type value which also contains the charset.
229: */
230: String XML_CONTENT_TYPE_CHARSET_UTF16 = "text/xml;charset=utf-16";
231:
232: // SOAP Fault Codes.
233:
234: /**
235: * Server Fault Code.
236: */
237: String SERVER_FAULT_CODE = "Server";
238:
239: /**
240: * Client Fault Code.
241: */
242: String CLIENT_FAULT_CODE = "Client";
243:
244: /**
245: * Version Mismatch Fault Code.
246: */
247: String VERSION_MISMATCH_FAULT_CODE = "VersionMismatch";
248:
249: /**
250: * Default Log Level.
251: */
252: Level DEFAULT_LOG_LEVEL = Level.INFO;
253:
254: /**
255: * SOAP Package Name.
256: */
257: String SOAP_PACKAGE_NAME = "com.sun.jbi.binding.soap";
258:
259: /**
260: * Package name for thread framework.
261: */
262: String THREAD_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".threads";
263:
264: /**
265: * Package name for configuration classes.
266: */
267: String CONFIG_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".config";
268:
269: /**
270: * Package name for classes handling outbound requests.
271: */
272: String OUTBOUND_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".outbound";
273:
274: /**
275: * Package name for utility classes.
276: */
277: String UTIL_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".util";
278:
279: /**
280: * NEW_LINE_CHARACTER.
281: */
282: String NEW_LINE = System.getProperty("line.separator");
283:
284: /**
285: * HTTP_SERVLET_REQUEST_PROPERTY.
286: */
287: String HTTP_SERVLET_REQUEST = "http_servlet_request";
288:
289: /**
290: * Default Operation name.
291: */
292: String DEFAULT_OPERATION_NAME = "default";
293:
294: /**
295: * Subject.
296: */
297: String SUBJECT = "subject";
298:
299: /**
300: * JAXP schema language.
301: */
302: String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
303:
304: /**
305: * XML schema version.
306: */
307: String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
308:
309: /**
310: * Attribute indicating JAXP schema source.
311: */
312: String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
313:
314: /**
315: * Name of the deployment schema file.
316: */
317: String DEPLOY_SCHEMA_FILE = "endpoints.xsd";
318: }
|