001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019:
020: package org.apache.axis2;
021:
022: /**
023: * Class Constants
024: */
025: public class Constants extends org.apache.axis2.namespace.Constants {
026:
027: /**
028: * Field SOAP_STYLE_RPC_ENCODED
029: */
030: public static final int SOAP_STYLE_RPC_ENCODED = 1000;
031:
032: /**
033: * Field SOAP_STYLE_RPC_LITERAL
034: */
035: public static final int SOAP_STYLE_RPC_LITERAL = 1001;
036:
037: /**
038: * Field SOAP_STYLE_DOC_LITERAL_WRAPPED
039: */
040: public static final int SOAP_STYLE_DOC_LITERAL_WRAPPED = 1002;
041:
042: /**
043: * Field SESSION_SCOPE
044: */
045: public static final String SESSION_SCOPE = "session";
046:
047: /**
048: * Field SESSION_CONTEXT_PROPERTY
049: */
050: public static final String SESSION_CONTEXT_PROPERTY = "SessionContext";
051:
052: /**
053: * Field PHASE_TRANSPORT
054: */
055: public static final String PHASE_TRANSPORT = "transport";
056:
057: /**
058: * Field PHASE_SERVICE
059: */
060: public static final String PHASE_SERVICE = "service";
061:
062: /**
063: * Field PHASE_GLOBAL
064: */
065: public static final String PHASE_GLOBAL = "global";
066:
067: /**
068: * Field MESSAGE_SCOPE
069: */
070: public static final String MESSAGE_SCOPE = "message";
071:
072: public static final String AXIS_BINDING_OPERATION = "AxisBindingOperation";
073:
074: /**
075: * To chenge the conetext path from axis2/service to something else
076: */
077: public static final String PARAM_CONTEXT_ROOT = "contextRoot";
078: /**
079: * To chenage the service path to somthing else
080: */
081: public static final String PARAM_SERVICE_PATH = "servicePath";
082: //Parameter name for transport session managemntt
083: public static final String MANAGE_TRANSPORT_SESSION = "manageTransportSession";
084:
085: public static final String HTTP_RESPONSE_STATE = "axis2.http.response.state";
086: public static final String HTTP_BASIC_AUTH_REALM = "axis2.authentication.realm";
087:
088: /**
089: * Field APPLICATION_SCOPE
090: */
091: public static final String SCOPE_APPLICATION = "application";
092: public static final String SCOPE_SOAP_SESSION = "soapsession";
093: public static final String SCOPE_TRANSPORT_SESSION = "transportsession";
094: public static final String SCOPE_REQUEST = "request";
095:
096: public static final String AXIS2_REPO = "axis2.repo";
097: public static final String AXIS2_CONF = "axis2.xml";
098: public static final String USER_HOME = "user.home";
099:
100: /**
101: * Field TRANSPORT_TCP
102: */
103: public static final String TRANSPORT_TCP = "tcp";
104: public static final String TRANSPORT_MAIL = "mailto";
105: public static final String TRANSPORT_LOCAL = "local";
106: public static final String TRANSPORT_JMS = "jms";
107:
108: /**
109: * Field TRANSPORT_HTTP
110: */
111: public static final String TRANSPORT_HTTP = "http";
112: public static final String TRANSPORT_HTTPS = "https";
113:
114: //Parameter name of Service impl class
115: public static final String SERVICE_CLASS = "ServiceClass";
116: public static final String SERVICE_OBJECT_SUPPLIER = "ServiceObjectSupplier";
117: public static final String SERVICE_TCCL = "ServiceTCCL";
118:
119: public static final String TCCL_DEFAULT = "default";
120: public static final String TCCL_COMPOSITE = "composite";
121: public static final String TCCL_SERVICE = "service";
122: public static final String FAULT_NAME = "faultName";
123:
124: /**
125: * Field REQUEST_URL_PREFIX
126: */
127: public static final String LIST_PHASES = "listPhases";
128: public static final String LIST_MODULES = "listModules";
129: public static final String LIST_GLOABLLY_ENGAGED_MODULES = "globalModules";
130: public static final String LIST_CONTEXTS = "listContexts";
131: public static final String ENGAGE_MODULE_TO_SERVICE_GROUP = "engageToServiceGroup";
132: public static final String ENGAGE_MODULE_TO_SERVICE = "engageToService";
133: public static final String ENGAGE_GLOBAL_MODULE = "engagingglobally";
134: public static final String ADMIN_LOGIN = "adminlogin";
135: public static final String AXIS_WEB_CONTENT_ROOT = "/axis2-web/";
136:
137: /**
138: * List service for admin pages
139: */
140: public static final String ADMIN_LISTSERVICES = "listService";
141: public static final String VIEW_GLOBAL_HANDLERS = "viewGlobalHandlers";
142: public static final String SELECT_SERVICE_FOR_PARA_EDIT = "selectServiceParaEdit";
143: public static final String SELECT_SERVICE = "selectService";
144: public static final String EDIT_SERVICE_PARA = "editServicepara";
145: public static final String VIEW_SERVICE_HANDLERS = "viewServiceHandlers";
146: public static final String USER_NAME = "userName";
147: public static final String ADMIN_SECURITY_DISABLED = "disableAdminSecurity";
148:
149: /**
150: * Field SINGLE_SERVICE
151: */
152: public static final String SINGLE_SERVICE = "singleservice";
153:
154: /**
155: * @deprecated Please use org.apache.axis2.transport.http.HTTPConstants.MC_HTTP_SERVLETCONTEXT
156: */
157: public static final String SERVLET_CONTEXT = "transport.http.servletContext";
158: /**
159: * @deprecated Please use org.apache.axis2.transport.http.HTTPConstants.MC_HTTP_SERVLETREQUEST
160: */
161: public static final String HTTP_SERVLET_REQUEST = "transport.http.servletRequest";
162:
163: public static final String SERVICE_MAP = "servicemap";
164: public static final String SERVICE_ROOT = "serviceRoot";
165: public static final String SERVICE_PATH = "servicePath";
166: public static final String SERVICE_HANDLERS = "serviceHandlers";
167: public static final String SERVICE_GROUP_MAP = "serviceGroupmap";
168: public static final String SERVICE = "service";
169: public static final String SELECT_SERVICE_TYPE = "SELECT_SERVICE_TYPE";
170: public static final String IN_ACTIVATE_SERVICE = "inActivateService";
171: public static final String ACTIVATE_SERVICE = "activateService";
172: public static final String PHASE_LIST = "phaseList";
173: public static final String PASSWORD = "password";
174: public static final String OPERATION_MAP = "operationmap";
175: public static final String MODULE_MAP = "modulemap";
176: public static final String MODULE_ADDRESSING = "addressing";
177: public static final String LIST_SERVICE_GROUPS = "listServiceGroups";
178: public static final String LIST_OPERATIONS_FOR_THE_SERVICE = "listOperations";
179: public static final String IS_FAULTY = "Fault";
180: public static final String GLOBAL_HANDLERS = "axisconfig";
181:
182: /**
183: * Keys for service/module error maps
184: */
185: public static final String ERROR_SERVICE_MAP = "errprservicemap";
186: public static final String ERROR_MODULE_MAP = "errormodulesmap";
187: public static final String ENGAGE_STATUS = "engagestatus";
188: public static final String CONFIG_CONTEXT = "config_context";
189: public static final String WSDL_CONTENT = "wsdl";
190: public static final String ACTION_MAPPING = "actionMapping";
191: public static final String OUTPUT_ACTION_MAPPING = "outputActionMapping";
192: public static final String FAULT_ACTION_MAPPING = "faultActionMapping";
193: public static final String FAULT_ACTION_NAME = "faultName";
194: public static final String VALUE_TRUE = "true";
195: public static final String VALUE_FALSE = "false";
196: public static final String VALUE_OPTIONAL = "optional";
197: public static final String TESTING_PATH = "target/test-resources/";
198: public static final String TESTING_REPOSITORY = TESTING_PATH
199: + "samples";
200: public static final char SERVICE_NAME_SPLIT_CHAR = ':';
201: public static final String SERVICE_GROUP_ID = "ServiceGroupId";
202: public static final String RESPONSE_WRITTEN = "RESPONSE_WRITTEN";
203: //To have a floag if the replyTo is not annon one
204: public static final String DIFFERENT_EPR = "DIFFERENT_EPR";
205:
206: /**
207: * This can be set in the MessageContext to give an response code the transport should use when sending it out.
208: */
209: public static final String RESPONSE_CODE = "RESPONSE_CODE";
210:
211: /**
212: * Transport Info
213: */
214: public static final String OUT_TRANSPORT_INFO = "OutTransportInfo";
215:
216: /**
217: * Field METHOD_NAME_ESCAPE_CHARACTER
218: */
219: public static final char METHOD_NAME_ESCAPE_CHARACTER = '?';
220: public static final String LOGGED = "Logged";
221: public static final String CONTAINER_MANAGED = "ContainerManaged";
222:
223: public static final String FAULT_INFORMATION_FOR_HEADERS = "FaultHeaders";
224:
225: /**
226: * @deprecated Please use org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING
227: */
228: public static final String COOKIE_STRING = "Cookie";
229: public static final String SESSION_COOKIE = "axis_session";
230: public static final String SESSION_COOKIE_JSESSIONID = "JSESSIONID";
231: public static final String CUSTOM_COOKIE_ID = "customCookieID";
232:
233: /**
234: * Addressing Constants
235: */
236: public static final String ADDRESSING_ACTION = "WS-Addressing:Action";
237: public static final String HTTP_FRONTEND_HOST_URL = "httpFrontendHostUrl";
238: public static final String DEFAULT_REST_PATH = "rest";
239: public static final String DEFAULT_SERVICES_PATH = "services";
240:
241: /**
242: * Field Builder Selector
243: */
244: public static final String BUILDER_SELECTOR = "builderselector";
245:
246: /**
247: * Property name for inbound fault processor to set a fault on the message
248: * context to be thrown by the client code in favour of a simple translation
249: * from SOAPFault to AxisFault
250: */
251: public static final String INBOUND_FAULT_OVERRIDE = "inboundFaultOverride";
252:
253: public static interface Configuration {
254: public static final String ENABLE_REST = "enableREST";
255: public static final String ENABLE_REST_THROUGH_GET = "restThroughGet";
256:
257: public static final String ARTIFACTS_TEMP_DIR = "artifactsDIR";
258:
259: //Attachment configurations
260: public static final String ENABLE_MTOM = "enableMTOM";
261: public static final String CACHE_ATTACHMENTS = "cacheAttachments";
262: public static final String ATTACHMENT_TEMP_DIR = "attachmentDIR";
263: public static final String FILE_SIZE_THRESHOLD = "sizeThreshold";
264: public static final String ENABLE_SWA = "enableSwA";
265: public static final String MIME_BOUNDARY = "mimeBoundary";
266: public static final String MM7_COMPATIBLE = "MM7Compatible";
267: public static final String MM7_INNER_BOUNDARY = "MM7InnerBoundary";
268: public static final String MM7_PART_CID = "MM7PartCID";
269:
270: public static final String HTTP_METHOD_GET = "GET";
271: public static final String HTTP_METHOD_DELETE = "DELETE";
272: public static final String HTTP_METHOD_PUT = "PUT";
273: public static final String HTTP_METHOD = "HTTP_METHOD";
274: public static final String HTTP_METHOD_POST = "POST";
275:
276: public static final String CONTENT_TYPE = "ContentType";
277:
278: public static final String CONFIG_CONTEXT_TIMOUT_INTERVAL = "ConfigContextTimeoutInterval";
279:
280: public static final String TRANSPORT_IN_URL = "TransportInURL";
281:
282: public static final String URL_PARAMETER_LIST = "URLParameterList";
283: public static final String URL_HTTP_LOCATION_PARAMS_LIST = "HTTPLocationParamsList";
284:
285: public static final String SEND_STACKTRACE_DETAILS_WITH_FAULTS = "sendStacktraceDetailsWithFaults";
286:
287: public static final String DRILL_DOWN_TO_ROOT_CAUSE_FOR_FAULT_REASON = "drillDownToRootCauseForFaultReason";
288:
289: public static final String DISABLE_REST = "disableREST";
290:
291: // this will contain the keys of all the properties that will be in the message context
292: public static final String TRANSPORT_URL = "TransportURL";
293:
294: /**
295: * @deprecated please use org.apache.axis2.addressing.AddressingConstants.DISABLE_ADDRESSING_FOR_OUT_MESSAGES
296: */
297: public static final String DISABLE_ADDRESSING_FOR_OUT_MESSAGES = "disableAddressingForOutMessages";
298:
299: // if this property is set to Boolean.TRUE then the SOAPAction header, if present,
300: // will NOT be set to the value of Options.getAction(). The empty value, "", will
301: // be used instead.
302: public static final String DISABLE_SOAP_ACTION = "disableSoapAction";
303:
304: /**
305: * Field CHARACTER_SET_ENCODING
306: */
307: public static final String CHARACTER_SET_ENCODING = "CHARACTER_SET_ENCODING";
308:
309: /**
310: * If this is set to a Boolean 'true' value, the replyTo value will not be replaced in
311: * an OutIn invocation. This is useful for modules that hope to get the reply message in
312: * its own manner.
313: */
314: public static final String USE_CUSTOM_LISTENER = "UseCustomListener";
315:
316: /**
317: * If this is set to a Boolean 'true' value, then OutIn operations will always be treated
318: * as async. This is useful for modules that layer async behaviour on top of sync channels.
319: */
320: public static final String USE_ASYNC_OPERATIONS = "UseAsyncOperations";
321:
322: /**
323: * This is used to specify the message format which the message needs to be serializes.
324: *
325: * @see org.apache.axis2.transport.MessageFormatter
326: */
327: public static final String MESSAGE_TYPE = "messageType";
328:
329: public static final String SOAP_RESPONSE_MEP = "soapResponseMEP";
330:
331: /**
332: * This will be used as a key for storing transport information.
333: */
334: public static final String TRANSPORT_INFO_MAP = "TransportInfoMap";
335:
336: /**
337: * If this is set to a Boolean 'true' value, then RequestResponseTransport instances will
338: * not be signalled by the Dispatch phase. This is useful for modules that add wish to
339: * send extra messages in the backchannel.
340: */
341: public static final String DISABLE_RESPONSE_ACK = "DisableResponseAck";
342:
343: }
344: }
|