FileDocCategorySizeDatePackage
Handler.javaAPI DocApache Axis 1.41619Sat Apr 22 18:57:26 BST 2006org.apache.axis.transport.jms

Handler

public class Handler extends URLStreamHandler
URLStreamHandler for the "jms" protocol
author
Ray Chun (rchun@sonicsoftware.com)

Fields Summary
Constructors Summary
Methods Summary
protected java.net.URLConnectionopenConnection(java.net.URL url)

        return new JMSURLConnection(url);
    
protected java.lang.StringtoExternalForm(java.net.URL url)
Reassembles the URL string, in the form "jms:/?prop1=value1&prop2=value2&..."

        // register the JMSTransport class
        org.apache.axis.client.Call.setTransportForProtocol(JMSConstants.PROTOCOL, org.apache.axis.transport.jms.JMSTransport.class);
    

        String destination = url.getPath().substring(1);
        String query = url.getQuery();

        StringBuffer jmsurl = new StringBuffer(JMSConstants.PROTOCOL + ":/");
        jmsurl.append(destination).append("?").append(query);

        return jmsurl.toString();