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.axis2.dataretrieval;
21:
22: /**
23: * Defines constants referenced in data retrieval classes.
24: */
25: public interface DRConstants {
26: public interface SPEC_VERSIONS {
27: String v1_0 = "Spec_2004_09";
28: }
29:
30: public interface SOAPVersion {
31: int v1_1 = 1;
32:
33: int v1_2 = 2;
34:
35: }
36:
37: /**
38: * Defines contants references in WS-Mex specification
39: */
40:
41: public interface SPEC {
42: String NS_URI = "http://schemas.xmlsoap.org/ws/2004/09/mex";
43:
44: public interface Actions {
45: String GET_METADATA_REQUEST = "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Request";
46: String GET_METADATA_RESPONSE = "http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Response";
47:
48: }
49:
50: String NS_PREFIX = "mex";
51: String GET_METADATA = "GetMetadata";
52: String DIALET = "Dialect";
53: String IDENTIFIER = "Identifier";
54: String METADATA = "Metadata";
55: String METADATA_SECTION = "MetadataSection";
56: String METADATA_REFERENCE = "MetadataReference";
57: String LOCATION = "Location";
58: String TYPE = "type";
59: String DIALECT_TYPE_WSDL = "http://schemas.xmlsoap.org/wsdl/";
60: String DIALECT_TYPE_POLICY = "http://schemas.xmlsoap.org/ws/2004/09/policy";
61: String DIALECT_TYPE_SCHEMA = "http://www.w3.org/2001/XMLSchema";
62:
63: }
64:
65: // Following constants used for configuring Data Locator in axis.xml and services.xml
66: String DATA_LOCATOR_ELEMENT = "dataLocator";
67: String DIALECT_LOCATOR_ELEMENT = "dialectLocator";
68: String DIALECT_ATTRIBUTE = "dialect";
69: String CLASS_ATTRIBUTE = "class";
70:
71: // Service level and Global level type Data Locator
72: String SERVICE_LEVEL = "ServiceLevel";
73: String GLOBAL_LEVEL = "GlobalLevel";
74:
75: /**
76: * Defines contants references in Service Data
77: */
78:
79: public interface SERVICE_DATA {
80: String FILE_NAME = "ServiceData.xml";
81: String FILE_TYPE = "svcData";
82:
83: String DATA = "Data";
84: String ENDPOINT_REFERENCE = "EndpointReference";
85: String URL = "URL";
86: String FILE = "file";
87: String DIALECT = "dialect";
88: String IDENTIFIER = "identifier";
89:
90: }
91:
92: }
|