1 /**
2 *
3 * Copyright 2003-2004 The Apache Software Foundation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 package org.apache.geronimo.axis.client;
18
19 import java.util.Iterator;
20 import java.io.Serializable;
21 import javax.xml.namespace.QName;
22 import javax.xml.rpc.Stub;
23
24 import org.apache.axis.message.SOAPHeaderElement;
25 import org.apache.axis.client.Call;
26 import org.apache.axis.NoEndPointException;
27
28 /**
29 * this gets enhanced to be the proxy.
30 * @version $Rev: 356022 $ $Date: 2005-12-11 12:58:34 -0800 (Sun, 11 Dec 2005) $
31 */
32 public class GenericServiceEndpointWrapper implements Stub, Serializable {
33 private final GenericServiceEndpoint genericServiceEndpoint;
34
35 public GenericServiceEndpointWrapper(GenericServiceEndpoint genericServiceEndpoint) {
36 this.genericServiceEndpoint = genericServiceEndpoint;
37 }
38
39 public void _setProperty(String s, Object o) {
40 genericServiceEndpoint._setProperty(s, o);
41 }
42
43 public Object _getProperty(String s) {
44 return genericServiceEndpoint._getProperty(s);
45 }
46
47 public Object removeProperty(String s) {
48 return genericServiceEndpoint.removeProperty(s);
49 }
50
51 public Iterator _getPropertyNames() {
52 return genericServiceEndpoint._getPropertyNames();
53 }
54
55 public void setUsername(String s) {
56 genericServiceEndpoint.setUsername(s);
57 }
58
59 public String getUsername() {
60 return genericServiceEndpoint.getUsername();
61 }
62
63 public void setPassword(String s) {
64 genericServiceEndpoint.setPassword(s);
65 }
66
67 public String getPassword() {
68 return genericServiceEndpoint.getPassword();
69 }
70
71 public int getTimeout() {
72 return genericServiceEndpoint.getTimeout();
73 }
74
75 public void setTimeout(int i) {
76 genericServiceEndpoint.setTimeout(i);
77 }
78
79 public QName getPortName() {
80 return genericServiceEndpoint.getPortName();
81 }
82
83 public void setPortName(QName qName) {
84 genericServiceEndpoint.setPortName(qName);
85 }
86
87 public void setPortName(String s) {
88 genericServiceEndpoint.setPortName(s);
89 }
90
91 public void setMaintainSession(boolean b) {
92 genericServiceEndpoint.setMaintainSession(b);
93 }
94
95 public void setHeader(String s, String s1, Object o) {
96 genericServiceEndpoint.setHeader(s, s1, o);
97 }
98
99 public void setHeader(SOAPHeaderElement soapHeaderElement) {
100 genericServiceEndpoint.setHeader(soapHeaderElement);
101 }
102
103 public void extractAttachments(Call call) {
104 genericServiceEndpoint.extractAttachments(call);
105 }
106
107 public void addAttachment(Object o) {
108 genericServiceEndpoint.addAttachment(o);
109 }
110
111 public SOAPHeaderElement getHeader(String s, String s1) {
112 return genericServiceEndpoint.getHeader(s, s1);
113 }
114
115 public SOAPHeaderElement getResponseHeader(String s, String s1) {
116 return genericServiceEndpoint.getResponseHeader(s, s1);
117 }
118
119 public SOAPHeaderElement[] getHeaders() {
120 return genericServiceEndpoint.getHeaders();
121 }
122
123 public SOAPHeaderElement[] getResponseHeaders() {
124 return genericServiceEndpoint.getResponseHeaders();
125 }
126
127 public Object[] getAttachments() {
128 return genericServiceEndpoint.getAttachments();
129 }
130
131 public void clearHeaders() {
132 genericServiceEndpoint.clearHeaders();
133 }
134
135 public void clearAttachments() {
136 genericServiceEndpoint.clearAttachments();
137 }
138
139 void checkCachedEndpoint() throws NoEndPointException {
140 genericServiceEndpoint.checkCachedEndpoint();
141 }
142 }