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: package org.apache.axis2.description;
20:
21: import org.apache.axiom.soap.SOAP12Constants;
22: import org.apache.axis2.wsdl.WSDLConstants;
23:
24: import java.util.HashMap;
25: import java.util.Map;
26:
27: public class WSDL20DefaultValueHolder {
28:
29: private static Map defaultValuesMap = new HashMap();
30:
31: public static final String WHTTP_METHOD_WSDLX_SAFE = "whttp:methodWSDLsafe";
32: public static final String WHTTP_METHOD_WSDLX_NOTSAFE = "whttp:methodWSDLNotsafe";
33: public static final String ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR_DEFAULT = "&";
34:
35: static {
36: defaultValuesMap.put(WSDL2Constants.ATTR_WSOAP_VERSION,
37: SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
38: defaultValuesMap.put(WSDL2Constants.ATTR_WSOAP_ACTION,
39: "\\\"\\\"");
40: defaultValuesMap
41: .put(
42: WHTTP_METHOD_WSDLX_SAFE,
43: org.apache.axis2.Constants.Configuration.HTTP_METHOD_GET);
44: defaultValuesMap
45: .put(
46: WHTTP_METHOD_WSDLX_SAFE,
47: org.apache.axis2.Constants.Configuration.HTTP_METHOD_POST);
48: defaultValuesMap.put(
49: WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
50: ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR_DEFAULT);
51: defaultValuesMap.put(WSDLConstants.WSDL_1_1_STYLE,
52: WSDLConstants.STYLE_DOC);
53: defaultValuesMap.put(WSDL2Constants.ATTR_WSOAP_MEP,
54: WSDL2Constants.MEP_URI_IN_OUT);
55: }
56:
57: public static String getDefaultValue(String name) {
58: return (String) defaultValuesMap.get(name);
59: }
60: }
|