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 */ 017 package org.apache.geronimo.axis.client; 018 019 import java.util.Iterator; 020 import java.io.Serializable; 021 import javax.xml.namespace.QName; 022 import javax.xml.rpc.Stub; 023 024 import org.apache.axis.message.SOAPHeaderElement; 025 import org.apache.axis.client.Call; 026 import org.apache.axis.NoEndPointException; 027 028 /** 029 * this gets enhanced to be the proxy. 030 * @version $Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $ 031 */ 032 public class GenericServiceEndpointWrapper implements Stub, Serializable { 033 private final GenericServiceEndpoint genericServiceEndpoint; 034 035 public GenericServiceEndpointWrapper(GenericServiceEndpoint genericServiceEndpoint) { 036 this.genericServiceEndpoint = genericServiceEndpoint; 037 } 038 039 public void _setProperty(String s, Object o) { 040 genericServiceEndpoint._setProperty(s, o); 041 } 042 043 public Object _getProperty(String s) { 044 return genericServiceEndpoint._getProperty(s); 045 } 046 047 public Object removeProperty(String s) { 048 return genericServiceEndpoint.removeProperty(s); 049 } 050 051 public Iterator _getPropertyNames() { 052 return genericServiceEndpoint._getPropertyNames(); 053 } 054 055 public void setUsername(String s) { 056 genericServiceEndpoint.setUsername(s); 057 } 058 059 public String getUsername() { 060 return genericServiceEndpoint.getUsername(); 061 } 062 063 public void setPassword(String s) { 064 genericServiceEndpoint.setPassword(s); 065 } 066 067 public String getPassword() { 068 return genericServiceEndpoint.getPassword(); 069 } 070 071 public int getTimeout() { 072 return genericServiceEndpoint.getTimeout(); 073 } 074 075 public void setTimeout(int i) { 076 genericServiceEndpoint.setTimeout(i); 077 } 078 079 public QName getPortName() { 080 return genericServiceEndpoint.getPortName(); 081 } 082 083 public void setPortName(QName qName) { 084 genericServiceEndpoint.setPortName(qName); 085 } 086 087 public void setPortName(String s) { 088 genericServiceEndpoint.setPortName(s); 089 } 090 091 public void setMaintainSession(boolean b) { 092 genericServiceEndpoint.setMaintainSession(b); 093 } 094 095 public void setHeader(String s, String s1, Object o) { 096 genericServiceEndpoint.setHeader(s, s1, o); 097 } 098 099 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 }