001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.server.axis;
017:
018: import org.apache.axis.constants.Style;
019: import org.apache.axis.constants.Use;
020: import org.apache.axis.description.JavaServiceDesc;
021: import org.apache.axis.description.OperationDesc;
022: import org.apache.axis.encoding.TypeMapping;
023: import org.apache.axis.encoding.TypeMappingRegistry;
024:
025: import javax.xml.namespace.QName;
026: import java.util.ArrayList;
027: import java.util.List;
028:
029: public class ReadOnlyServiceDesc extends JavaServiceDesc {
030: private JavaServiceDesc serviceDesc;
031:
032: public ReadOnlyServiceDesc(JavaServiceDesc serviceDesc) {
033: this .serviceDesc = serviceDesc;
034: }
035:
036: public Class getImplClass() {
037: return serviceDesc.getImplClass();
038: }
039:
040: public void setImplClass(Class implClass) {
041: serviceDesc.setImplClass(implClass);
042: }
043:
044: public ArrayList getStopClasses() {
045: return serviceDesc.getStopClasses();
046: }
047:
048: public void setStopClasses(ArrayList stopClasses) {
049: }
050:
051: public void loadServiceDescByIntrospection() {
052: serviceDesc.loadServiceDescByIntrospection();
053: }
054:
055: public void loadServiceDescByIntrospection(Class implClass) {
056: serviceDesc.loadServiceDescByIntrospection(implClass);
057: }
058:
059: public void loadServiceDescByIntrospection(Class cls, TypeMapping tm) {
060: serviceDesc.loadServiceDescByIntrospection(cls, tm);
061: }
062:
063: public Style getStyle() {
064: return serviceDesc.getStyle();
065: }
066:
067: public void setStyle(Style style) {
068: }
069:
070: public Use getUse() {
071: return serviceDesc.getUse();
072: }
073:
074: public void setUse(Use use) {
075: }
076:
077: public String getWSDLFile() {
078: return serviceDesc.getWSDLFile();
079: }
080:
081: public void setWSDLFile(String wsdlFileName) {
082: }
083:
084: public List getAllowedMethods() {
085: return serviceDesc.getAllowedMethods();
086: }
087:
088: public void setAllowedMethods(List allowedMethods) {
089: }
090:
091: public TypeMapping getTypeMapping() {
092: return serviceDesc.getTypeMapping();
093: }
094:
095: public void setTypeMapping(TypeMapping tm) {
096: }
097:
098: public String getName() {
099: return serviceDesc.getName();
100: }
101:
102: public void setName(String name) {
103: }
104:
105: public String getDocumentation() {
106: return serviceDesc.getDocumentation();
107: }
108:
109: public void setDocumentation(String documentation) {
110: }
111:
112: public void removeOperationDesc(OperationDesc operation) {
113: }
114:
115: public void addOperationDesc(OperationDesc operation) {
116: }
117:
118: public ArrayList getOperations() {
119: return serviceDesc.getOperations();
120: }
121:
122: public OperationDesc[] getOperationsByName(String methodName) {
123: return serviceDesc.getOperationsByName(methodName);
124: }
125:
126: public OperationDesc getOperationByName(String methodName) {
127: return serviceDesc.getOperationByName(methodName);
128: }
129:
130: public OperationDesc getOperationByElementQName(QName qname) {
131: return serviceDesc.getOperationByElementQName(qname);
132: }
133:
134: public OperationDesc[] getOperationsByQName(QName qname) {
135: return serviceDesc.getOperationsByQName(qname);
136: }
137:
138: public void setNamespaceMappings(List namespaces) {
139: }
140:
141: public String getDefaultNamespace() {
142: return serviceDesc.getDefaultNamespace();
143: }
144:
145: public void setDefaultNamespace(String namespace) {
146: }
147:
148: public void setProperty(String name, Object value) {
149: serviceDesc.setProperty(name, value);
150: }
151:
152: public Object getProperty(String name) {
153: return serviceDesc.getProperty(name);
154: }
155:
156: public String getEndpointURL() {
157: return serviceDesc.getEndpointURL();
158: }
159:
160: public void setEndpointURL(String endpointURL) {
161: }
162:
163: public TypeMappingRegistry getTypeMappingRegistry() {
164: return serviceDesc.getTypeMappingRegistry();
165: }
166:
167: public void setTypeMappingRegistry(TypeMappingRegistry tmr) {
168: }
169:
170: public boolean isInitialized() {
171: return serviceDesc.isInitialized();
172: }
173:
174: public boolean isWrapped() {
175: return serviceDesc.isWrapped();
176: }
177:
178: public List getDisallowedMethods() {
179: return serviceDesc.getDisallowedMethods();
180: }
181:
182: public void setDisallowedMethods(List disallowedMethods) {
183: }
184: }
|