01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.synapse.config.xml;
21:
22: import org.apache.synapse.SynapseConstants;
23: import javax.xml.namespace.QName;
24:
25: /**
26: * Constants used in the processing of XML configuration language
27: */
28: public class XMLConfigConstants {
29:
30: // re-definition of the Synapse NS here to make things easier for the XML config lang code
31: public static final String SYNAPSE_NAMESPACE = SynapseConstants.SYNAPSE_NAMESPACE;
32:
33: //- Mediators -
34: //-- PropertyMediator --
35: /** The scope name for synapse message context properties */
36: public static final String SCOPE_DEFAULT = "default";
37: /** The scope name for axis2 message context properties */
38: public static final String SCOPE_AXIS2 = "axis2";
39: /** The scope name for axis2 message context client options properties */
40: public static final String SCOPE_CLIENT = "axis2-client";
41: /** The scope name for transport header properties */
42: public static final String SCOPE_TRANSPORT = "transport";
43:
44: //-- WS-RM sequence mediator --
45: /** WS-RM version 1.0*/
46: public static final String SEQUENCE_VERSION_1_0 = "1.0";
47: /** WS-RM version 1.1*/
48: public static final String SEQUENCE_VERSION_1_1 = "1.1";
49:
50: //- configuration language constants -
51: public static final QName DEFINITIONS_ELT = new QName(
52: SYNAPSE_NAMESPACE, "definitions");
53: public static final QName SEQUENCE_ELT = new QName(
54: SYNAPSE_NAMESPACE, "sequence");
55: public static final QName ENDPOINT_ELT = new QName(
56: SYNAPSE_NAMESPACE, "endpoint");
57: public static final QName ENTRY_ELT = new QName(SYNAPSE_NAMESPACE,
58: "localEntry");
59: public static final QName REGISTRY_ELT = new QName(
60: SYNAPSE_NAMESPACE, "registry");
61: public static final QName TASK_ELT = new QName(SYNAPSE_NAMESPACE,
62: "task");
63: public static final QName PROXY_ELT = new QName(SYNAPSE_NAMESPACE,
64: "proxy");
65: public static final String NULL_NAMESPACE = "";
66: public static final Object QUARTZ_QNAME = new QName(
67: "http://www.opensymphony.com/quartz/JobSchedulingData",
68: "quartz");
69:
70: /** The Trace attribute name, for proxy services, sequences */
71: public static final String TRACE_ATTRIB_NAME = "trace";
72: /** The Trace value 'enable' */
73: public static final String TRACE_ENABLE = "enable";
74: /** The Trace value 'disable' */
75: public static final String TRACE_DISABLE = "disable";
76:
77: /** The statistics attribute name */
78: public static final String STATISTICS_ATTRIB_NAME = "statistics";
79: /** The statistics value 'enable' */
80: public static final String STATISTICS_ENABLE = "enable";
81: /** The statistics value 'disable' */
82: public static final String STATISTICS_DISABLE = "disable";
83:
84: public static final String SUSPEND_DURATION_ON_FAILURE = "suspendDurationOnFailure";
85: public static final String ALGORITHM_NAME = "policy";
86:
87: public static final String ONREJECT = "onReject";
88: public static final String ONACCEPT = "onAccept";
89:
90: public static final QName ATT_XPATH_RELATIVE = new QName("relative");
91: public static final String XPATH_BODY_RELATIVE = "body";
92: public static final String XPATH_ENVELOPE_RELATIVE = "envelope";
93: }
|