Package org.apache.axis.transport.jms
Class JMSURLHelper
- java.lang.Object
-
- org.apache.axis.transport.jms.JMSURLHelper
-
public class JMSURLHelper extends java.lang.ObjectJMSURLHelper 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplicationProperty(java.lang.String property)Adds the name of a property from the url properties that should be added to the JMS message.voidaddApplicationProperty(java.lang.String property, java.lang.String value)Adds the name and value od the application property to the JMS URL.voidaddRequiredProperties(java.lang.String[] properties)voidaddRequiredProperty(java.lang.String property)java.util.VectorgetApplicationProperties()Returns a collection of properties that are defined within the JMS URL to be added directly to the JMS messages.java.lang.StringgetDestination()java.lang.StringgetDomain()java.util.HashMapgetProperties()java.lang.StringgetPropertyValue(java.lang.String property)java.util.VectorgetRequiredProperties()java.lang.StringgetURLString()Returns a URL formatted String.java.lang.StringgetVendor()voidsetDestination(java.lang.String destination)java.lang.StringtoString()Returns a formatted URL String with the assigned properties
-
-
-
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:
toStringin classjava.lang.Object
-
-