1 10 11 package org.mule.providers.soap; 12 13 import org.mule.impl.endpoint.AbstractEndpointBuilder; 14 import org.mule.umo.endpoint.MalformedEndpointException; 15 16 import java.net.URI ; 17 import java.util.Properties ; 18 19 26 public class WsdlUrlEndpointBuilder extends AbstractEndpointBuilder 27 { 28 29 protected void setEndpoint(URI uri, Properties props) throws MalformedEndpointException 30 { 31 address = ""; 32 if (uri.getHost() != null) 33 { 34 this.address = uri.getScheme() + "://" + uri.getHost(); 36 if (uri.getPort() != -1) 37 { 38 address += ":" + uri.getPort(); 39 } 40 } 41 if (uri.getPath() != null) 42 { 43 address += uri.getPath(); 44 } 45 String query = uri.getQuery(); 46 if (query != null) 47 { 48 int i = query.indexOf("&"); 49 if (i > -1) 50 { 51 address += "?" + query.substring(0, i); 52 53 } 54 else 55 { 56 address += "?" + query; 57 } 58 } 59 } 60 } 61 | Popular Tags |