1 57 58 package org.apache.wsif.providers.java; 59 60 import java.util.Iterator ; 61 import java.util.List ; 62 63 import javax.wsdl.Binding; 64 import javax.wsdl.Definition; 65 import javax.wsdl.Port; 66 import javax.wsdl.Service; 67 import org.apache.wsif.WSIFException; 68 import org.apache.wsif.WSIFPort; 69 import org.apache.wsif.logging.Trc; 70 import org.apache.wsif.providers.WSIFDynamicTypeMap; 71 import org.apache.wsif.spi.WSIFProvider; 72 import org.apache.wsif.wsdl.extensions.java.JavaBinding; 73 74 128 public class WSIFDynamicProvider_Java implements WSIFProvider { 129 private static final String [] supportedBindingNamespaceURIs = 130 { "http://schemas.xmlsoap.org/wsdl/java/" }; 131 132 private static final String [] supportedAddressNamespaceURIs = 133 { "http://schemas.xmlsoap.org/wsdl/java/" }; 134 135 public WSIFDynamicProvider_Java() { 136 Trc.entry(this); 137 Trc.exit(); 138 } 139 140 144 public WSIFPort createDynamicWSIFPort( 145 Definition def, 146 Service service, 147 Port port, 148 WSIFDynamicTypeMap typeMap) 149 throws WSIFException { 150 Trc.entry(this, def, service, port, typeMap); 151 152 Binding binding = port.getBinding(); 154 List exs = binding.getExtensibilityElements(); 155 for (Iterator i = exs.iterator(); i.hasNext();) { 156 Object o = i.next(); 157 if (o instanceof JavaBinding) { 158 WSIFPort wp = new WSIFPort_Java(def, port, typeMap); 160 Trc.exit(wp); 161 return wp; 162 } 163 } 164 165 Trc.exit(); 167 return null; 168 } 169 170 174 public String [] getBindingNamespaceURIs() { 175 Trc.entry(this); 176 Trc.exit(supportedBindingNamespaceURIs); 177 return supportedBindingNamespaceURIs; 178 } 179 180 184 public String [] getAddressNamespaceURIs() { 185 Trc.entry(this); 186 Trc.exit(supportedAddressNamespaceURIs); 187 return supportedAddressNamespaceURIs; 188 } 189 } | Popular Tags |