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.client;
017:
018: import org.apache.axis.NoEndPointException;
019: import org.apache.axis.client.Call;
020: import org.apache.axis.message.SOAPHeaderElement;
021:
022: import javax.xml.namespace.QName;
023: import javax.xml.rpc.Stub;
024: import java.util.Iterator;
025:
026: public class GenericServiceEndpointWrapper implements Stub {
027: private final GenericServiceEndpoint genericServiceEndpoint;
028:
029: public GenericServiceEndpointWrapper(
030: GenericServiceEndpoint genericServiceEndpoint) {
031: this .genericServiceEndpoint = genericServiceEndpoint;
032: }
033:
034: public void _setProperty(String s, Object o) {
035: genericServiceEndpoint._setProperty(s, o);
036: }
037:
038: public Object _getProperty(String s) {
039: return genericServiceEndpoint._getProperty(s);
040: }
041:
042: public Object removeProperty(String s) {
043: return genericServiceEndpoint.removeProperty(s);
044: }
045:
046: public Iterator _getPropertyNames() {
047: return genericServiceEndpoint._getPropertyNames();
048: }
049:
050: public void setUsername(String s) {
051: genericServiceEndpoint.setUsername(s);
052: }
053:
054: public String getUsername() {
055: return genericServiceEndpoint.getUsername();
056: }
057:
058: public void setPassword(String s) {
059: genericServiceEndpoint.setPassword(s);
060: }
061:
062: public String getPassword() {
063: return genericServiceEndpoint.getPassword();
064: }
065:
066: public int getTimeout() {
067: return genericServiceEndpoint.getTimeout();
068: }
069:
070: public void setTimeout(int i) {
071: genericServiceEndpoint.setTimeout(i);
072: }
073:
074: public QName getPortName() {
075: return genericServiceEndpoint.getPortName();
076: }
077:
078: public void setPortName(QName qName) {
079: genericServiceEndpoint.setPortName(qName);
080: }
081:
082: public void setPortName(String s) {
083: genericServiceEndpoint.setPortName(s);
084: }
085:
086: public void setMaintainSession(boolean b) {
087: genericServiceEndpoint.setMaintainSession(b);
088: }
089:
090: public void setHeader(String s, String s1, Object o) {
091: genericServiceEndpoint.setHeader(s, s1, o);
092: }
093:
094: public void setHeader(SOAPHeaderElement soapHeaderElement) {
095: genericServiceEndpoint.setHeader(soapHeaderElement);
096: }
097:
098: public void extractAttachments(Call call) {
099: genericServiceEndpoint.extractAttachments(call);
100: }
101:
102: public void addAttachment(Object o) {
103: genericServiceEndpoint.addAttachment(o);
104: }
105:
106: public SOAPHeaderElement getHeader(String s, String s1) {
107: return genericServiceEndpoint.getHeader(s, s1);
108: }
109:
110: public SOAPHeaderElement getResponseHeader(String s, String s1) {
111: return genericServiceEndpoint.getResponseHeader(s, s1);
112: }
113:
114: public SOAPHeaderElement[] getHeaders() {
115: return genericServiceEndpoint.getHeaders();
116: }
117:
118: public SOAPHeaderElement[] getResponseHeaders() {
119: return genericServiceEndpoint.getResponseHeaders();
120: }
121:
122: public Object[] getAttachments() {
123: return genericServiceEndpoint.getAttachments();
124: }
125:
126: public void clearHeaders() {
127: genericServiceEndpoint.clearHeaders();
128: }
129:
130: public void clearAttachments() {
131: genericServiceEndpoint.clearAttachments();
132: }
133:
134: void checkCachedEndpoint() throws NoEndPointException {
135: genericServiceEndpoint.checkCachedEndpoint();
136: }
137: }
|