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