Class JMSURLHelper


  • public class JMSURLHelper
    extends java.lang.Object
    JMSURLHelper provides access to properties in the URL. The URL must be of the form: "jms:/?[=&]*"
    Author:
    Ray Chun (rchun@sonicsoftware.com)
    • Constructor Summary

      Constructors 
      Constructor Description
      JMSURLHelper​(java.net.URL url)  
      JMSURLHelper​(java.net.URL url, java.lang.String[] requiredProperties)  
    • Constructor Detail

      • JMSURLHelper

        public JMSURLHelper​(java.net.URL url)
                     throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • JMSURLHelper

        public JMSURLHelper​(java.net.URL url,
                            java.lang.String[] requiredProperties)
                     throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
    • Method Detail

      • getDestination

        public java.lang.String getDestination()
      • setDestination

        public void setDestination​(java.lang.String destination)
      • getVendor

        public java.lang.String getVendor()
      • getDomain

        public java.lang.String getDomain()
      • getProperties

        public java.util.HashMap getProperties()
      • getPropertyValue

        public java.lang.String getPropertyValue​(java.lang.String property)
      • addRequiredProperties

        public void addRequiredProperties​(java.lang.String[] properties)
      • addRequiredProperty

        public void addRequiredProperty​(java.lang.String property)
      • getRequiredProperties

        public java.util.Vector getRequiredProperties()
      • addApplicationProperty

        public void addApplicationProperty​(java.lang.String property)
        Adds the name of a property from the url properties that should be added to the JMS message.
      • addApplicationProperty

        public void addApplicationProperty​(java.lang.String property,
                                           java.lang.String value)
        Adds the name and value od the application property to the JMS URL.
      • getApplicationProperties

        public java.util.Vector getApplicationProperties()
        Returns a collection of properties that are defined within the JMS URL to be added directly to the JMS messages.
        Returns:
        collection or null depending on presence of elements
      • getURLString

        public java.lang.String getURLString()
        Returns a URL formatted String. The properties of the URL may not end up in the same order as the JMS URL that was originally used to create this object.
      • toString

        public java.lang.String toString()
        Returns a formatted URL String with the assigned properties
        Overrides:
        toString in class java.lang.Object