KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > axis > client > GenericServiceEndpointWrapper


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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 JavaDoc;
20 import java.io.Serializable JavaDoc;
21 import javax.xml.namespace.QName JavaDoc;
22 import javax.xml.rpc.Stub JavaDoc;
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: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $
31  */

32 public class GenericServiceEndpointWrapper implements Stub JavaDoc, Serializable JavaDoc {
33     private final GenericServiceEndpoint genericServiceEndpoint;
34
35     public GenericServiceEndpointWrapper(GenericServiceEndpoint genericServiceEndpoint) {
36         this.genericServiceEndpoint = genericServiceEndpoint;
37     }
38
39     public void _setProperty(String JavaDoc s, Object JavaDoc o) {
40         genericServiceEndpoint._setProperty(s, o);
41     }
42
43     public Object JavaDoc _getProperty(String JavaDoc s) {
44         return genericServiceEndpoint._getProperty(s);
45     }
46
47     public Object JavaDoc removeProperty(String JavaDoc s) {
48         return genericServiceEndpoint.removeProperty(s);
49     }
50
51     public Iterator JavaDoc _getPropertyNames() {
52         return genericServiceEndpoint._getPropertyNames();
53     }
54
55     public void setUsername(String JavaDoc s) {
56         genericServiceEndpoint.setUsername(s);
57     }
58
59     public String JavaDoc getUsername() {
60         return genericServiceEndpoint.getUsername();
61     }
62
63     public void setPassword(String JavaDoc s) {
64         genericServiceEndpoint.setPassword(s);
65     }
66
67     public String JavaDoc 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 JavaDoc getPortName() {
80         return genericServiceEndpoint.getPortName();
81     }
82
83     public void setPortName(QName JavaDoc qName) {
84         genericServiceEndpoint.setPortName(qName);
85     }
86
87     public void setPortName(String JavaDoc s) {
88         genericServiceEndpoint.setPortName(s);
89     }
90
91     public void setMaintainSession(boolean b) {
92         genericServiceEndpoint.setMaintainSession(b);
93     }
94
95     public void setHeader(String JavaDoc s, String JavaDoc s1, Object JavaDoc 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 JavaDoc o) {
108         genericServiceEndpoint.addAttachment(o);
109     }
110
111     public SOAPHeaderElement getHeader(String JavaDoc s, String JavaDoc s1) {
112         return genericServiceEndpoint.getHeader(s, s1);
113     }
114
115     public SOAPHeaderElement getResponseHeader(String JavaDoc s, String JavaDoc 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 JavaDoc[] 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 }
143
Popular Tags