1 16 17 package org.apache.axis.transport.jms; 18 19 import java.net.URL ; 20 import java.net.URLConnection ; 21 22 27 public class Handler 28 extends java.net.URLStreamHandler 29 { 30 static { 31 org.apache.axis.client.Call.setTransportForProtocol(JMSConstants.PROTOCOL, org.apache.axis.transport.jms.JMSTransport.class); 33 } 34 35 38 protected String toExternalForm(URL url) { 39 40 String destination = url.getPath().substring(1); 41 String query = url.getQuery(); 42 43 StringBuffer jmsurl = new StringBuffer (JMSConstants.PROTOCOL + ":/"); 44 jmsurl.append(destination).append("?").append(query); 45 46 return jmsurl.toString(); 47 } 48 49 protected URLConnection openConnection(URL url) { 50 return new JMSURLConnection(url); 51 } 52 } | Popular Tags |