org.apache.axis.transport.jms

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

JMSURLHelper(URL url)
JMSURLHelper(URL url, String[] requiredProperties)

Method Summary

void
addApplicationProperty(String property)
Adds the name of a property from the url properties that should be added to the JMS message.
void
addApplicationProperty(String property, String value)
Adds the name and value od the application property to the JMS URL.
void
addRequiredProperties(String[] properties)
void
addRequiredProperty(String property)
Vector
getApplicationProperties()
Returns a collection of properties that are defined within the JMS URL to be added directly to the JMS messages.
String
getDestination()
String
getDomain()
HashMap
getProperties()
String
getPropertyValue(String property)
Vector
getRequiredProperties()
String
getURLString()
Returns a URL formatted String.
String
getVendor()
void
setDestination(String destination)
String
toString()
Returns a formatted URL String with the assigned properties

Constructor Details

JMSURLHelper

public JMSURLHelper(URL url)
            throws java.net.MalformedURLException

JMSURLHelper

public JMSURLHelper(URL url,
                    String[] requiredProperties)
            throws java.net.MalformedURLException

Method Details

addApplicationProperty

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

addApplicationProperty

public void addApplicationProperty(String property,
                                   String value)
Adds the name and value od the application property to the JMS URL.

addRequiredProperties

public void addRequiredProperties(String[] properties)

addRequiredProperty

public void addRequiredProperty(String property)

getApplicationProperties

public 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

getDestination

public String getDestination()

getDomain

public String getDomain()

getProperties

public HashMap getProperties()

getPropertyValue

public String getPropertyValue(String property)

getRequiredProperties

public Vector getRequiredProperties()

getURLString

public 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.

getVendor

public String getVendor()

setDestination

public void setDestination(String destination)

toString

public String toString()
Returns a formatted URL String with the assigned properties

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.