KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > jbi > serviceengine > util > soap > SOAPConstants


1 // Copyright (c) 2004-2005 Sun Microsystems Inc., All Rights Reserved.
2

3 /*
4  * SOAPConstants.java
5  *
6  * SUN PROPRIETARY/CONFIDENTIAL.
7  * This software is the proprietary information of Sun Microsystems, Inc.
8  * Use is subject to license terms.
9  *
10  */

11 package com.sun.enterprise.jbi.serviceengine.util.soap;
12
13 import java.util.logging.Level JavaDoc;
14
15
16 /**
17  * This is a constants repository and is used by all SOAP binding components running in
18  * the JBI container.
19  *
20  * @author Sun Microsystems, Inc.
21  */

22 public interface SOAPConstants
23 {
24     /**
25      * Default value for max threads.
26      */

27     int DEFAULT_MAX_THREADS = 10;
28
29     /**
30      * Default value for min threads.
31      */

32     int DEFAULT_MIN_THREADS = 2;
33
34     /**
35      * Default Thread sleep time in milliseconds.
36      */

37     int DEFAULT_THREAD_SLEEP_TIME = 100;
38
39     /**
40      * Message Context property which holds fault string.
41      */

42     String JavaDoc FAULT_STRING_PROPERTY_NAME = "FAULT_STRING";
43
44     /**
45      * Message Context property which holds fault actor name.
46      */

47     String JavaDoc FAULT_CODE_PROPERTY_NAME = "FAULT_ACTOR";
48
49     /**
50      * Message Context property which holds SOAP header information.
51      */

52     String JavaDoc HEADER_PROPERTY_NAME = "SoapHeader";
53
54     /**
55      * Message Context property which holds soap action value.
56      */

57     String JavaDoc SOAP_ACTION_PROPERTY_NAME = "SOAP_ACTION_URI";
58
59     /**
60      * Message context property which hold http response code.
61      */

62     String JavaDoc HTTP_RESPONSE_CODE = "HTTP_RESPONSE_CODE";
63
64     /**
65      * Indicates that an exception has been thrown while the request was being processed.
66      */

67     int INTERNAL_SERVER_ERROR = 401;
68
69     /**
70      * Indicates that the service could not be invoked in the specified time.
71      */

72     int SERVICE_TIMEOUT = 403;
73
74     /**
75      * Indicates that the request does not conform to the request format.
76      */

77     int BAD_REQUEST_FORMAT = 404;
78
79     /**
80      * Indicates that the endpoint does not support the current operation.
81      */

82     int OPERATION_NOT_SUPPORTED = 405;
83
84     /**
85      * Indicates that an endpoint has been deployed for the service URL and that engine
86      * has not activated the inbound service channel.
87      */

88     int SERVICE_NOT_ACTIVATED = 406;
89
90     /**
91      * Indicates that the request message conforms to XML standards but not to SOAP
92      * standards.
93      */

94     int INVALID_SOAP_REQUEST_MESSAGE = 412;
95
96     /**
97      * Indicates that an error has been set in the Message Exchange.
98      */

99     int JBI_ERROR = 103;
100
101     /**
102      * Indicates that a fault has been set in the Message Exchange.
103      */

104     int JBI_FAULT = 102;
105
106     /**
107      * Indicates that the message has been successfully processed.
108      */

109     int JBI_SUCCESS = 101;
110
111     /**
112      * Indicates that the message processing has been completed.
113      */

114     int JBI_DONE = 100;
115
116     /**
117      * In_Only Pattern name.
118      */

119     String JavaDoc IN_ONLY_PATTERN = "in-only";
120
121     /**
122      * Robust In_Only Pattern name.
123      */

124     String JavaDoc ROBUST_IN_ONLY_PATTERN = "robust-in-only";
125
126     /**
127      * In_Optional_Out Pattern name.
128      */

129     String JavaDoc IN_OPTIONAL_OUT_PATTERN = "in-opt-out";
130
131     /**
132      * In_Out Pattern name.
133      */

134     String JavaDoc IN_OUT_PATTERN = "in-out";
135
136     /**
137      * Out_Only Pattern name.
138      */

139     String JavaDoc OUT_ONLY_PATTERN = "out-only";
140
141     /**
142      * Out_In Pattern name.
143      */

144     String JavaDoc ROBUST_OUT_ONLY_PATTERN = "robust-out-only";
145
146     /**
147      * Out_In Pattern name.
148      */

149     String JavaDoc OUT_OPTIONAL_IN_PATTERN = "out-opt-in";
150
151     /**
152      * Out_In Pattern name.
153      */

154     String JavaDoc OUT_IN_PATTERN = "out-in";
155
156     /**
157      * HTTP Scheme identifier.
158      */

159     String JavaDoc HTTP_SCHEME = "http";
160
161     /**
162      * HTTPS Scheme identifier.
163      */

164     String JavaDoc HTTPS_SCHEME = "https";
165
166     /**
167      * RPC Style.
168      */

169     String JavaDoc RPC_STYLE = "rpc";
170
171     /**
172      * Document Style.
173      */

174     String JavaDoc DOCUMENT_STYLE = "document";
175
176     /**
177      * Property which holds the registry File Name.
178      */

179     String JavaDoc REGISTRY_FILE_NAME = "REGISTRY_FILE_NAME";
180
181     /**
182      * Property which holds the registry file location.
183      */

184     String JavaDoc REGISTRY_FILE_LOCATION = "REGISTRY_FILE_LOCATION";
185
186     /**
187      * Schema directory name.
188      */

189     String JavaDoc SCHEMA_DIR_NAME = "schema";
190
191     /**
192      * UTF 8.
193      */

194     String JavaDoc UTF_8 = "utf-8";
195
196     /**
197      * UTF-16 representation.
198      */

199     String JavaDoc UTF_16 = "utf-16";
200
201     /**
202      * XML Content Type.
203      */

204     String JavaDoc XML_CONTENT_TYPE = "text/xml";
205
206     /**
207      * XML Content Type value which also contains the charset.
208      */

209     String JavaDoc XML_CONTENT_TYPE_CHARSET_UTF8 = "text/xml;charset=utf-8";
210
211     /**
212      * XML Content Type value which also contains the charset.
213      */

214     String JavaDoc XML_CONTENT_TYPE_CHARSET_UTF16 = "text/xml;charset=utf-16";
215
216     // SOAP Fault Codes.
217

218     /**
219      * Server Fault Code.
220      */

221     String JavaDoc SERVER_FAULT_CODE = "Server";
222
223     /**
224      * Client Fault Code.
225      */

226     String JavaDoc CLIENT_FAULT_CODE = "Client";
227
228     /**
229      * Version Mismatch Fault Code.
230      */

231     String JavaDoc VERSION_MISMATCH_FAULT_CODE = "VersionMismatch";
232
233     /**
234      * Default Log Level.
235      */

236     Level JavaDoc DEFAULT_LOG_LEVEL = Level.INFO;
237
238     /**
239      * SOAP Package Name.
240      */

241     String JavaDoc SOAP_PACKAGE_NAME = "com.sun.jbi.binding.soap";
242
243     /**
244      * Package name for thread framework.
245      */

246     String JavaDoc THREAD_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".threads";
247
248     /**
249      * Package name for configuration classes.
250      */

251     String JavaDoc CONFIG_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".config";
252
253     /**
254      * Package name for classes handling outbound requests.
255      */

256     String JavaDoc OUTBOUND_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".outbound";
257
258     /**
259      * Package name for utility classes.
260      */

261     String JavaDoc UTIL_PACKAGE_NAME = SOAP_PACKAGE_NAME + ".util";
262
263     /**
264      * NEW_LINE_CHARACTER.
265      */

266     String JavaDoc NEW_LINE = System.getProperty("line.separator");
267
268     /**
269      * HTTP_SERVLET_REQUEST_PROPERTY.
270      */

271     String JavaDoc HTTP_SERVLET_REQUEST = "http_servlet_request";
272
273     /**
274      * Default Operation name.
275      */

276     String JavaDoc DEFAULT_OPERATION_NAME = "default";
277
278     /**
279      * Subject.
280      */

281     String JavaDoc SUBJECT = "subject";
282
283     /**
284      * JAXP schema language.
285      */

286     String JavaDoc JAXP_SCHEMA_LANGUAGE =
287         "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
288
289     /**
290      * XML schema version.
291      */

292     String JavaDoc W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
293
294     /**
295      * Attribute indicating JAXP schema source.
296      */

297     String JavaDoc JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
298
299     /**
300      * Name of the deployment schema file.
301      */

302     String JavaDoc DEPLOY_SCHEMA_FILE = "endpoints.xsd";
303 }
304
Popular Tags