org.jboss.soa.esb.addressing.eprs
Class JMSEpr

java.lang.Object
  extended by org.jboss.soa.esb.addressing.EPR
      extended by org.jboss.soa.esb.addressing.eprs.JMSEpr

public class JMSEpr
extends EPR

A helper class for using JMS style EPRs. Simply create and use instances of this type.

Author:
marklittle

Field Summary
static java.lang.String CONNECTION_FACTORY_TAG
           
static java.lang.String DESTINATION_NAME_TAG
           
static java.lang.String DESTINATION_TYPE_TAG
           
static java.lang.String JMS_PROTOCOL
           
static java.lang.String JNDI_CONTEXT_FACTORY_TAG
           
static java.lang.String JNDI_PKG_PREFIX_TAG
           
static java.lang.String JNDI_URL_TAG
           
static java.lang.String MESSAGE_SELECTOR_TAG
           
static java.lang.String ONE_ONE_PROTOCOL
           
static java.lang.String ONE_ZERO_TWO_PROTOCOL
           
static java.lang.String PROTOCOL_SEPARATOR
           
static java.lang.String QUEUE_TYPE
           
static java.lang.String SPECIFICATION_VERSION_TAG
           
static java.lang.String TOPIC_TYPE
           
 
Constructor Summary
JMSEpr(EPR epr)
           
JMSEpr(EPR epr, org.w3c.dom.Element header)
           
JMSEpr(java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection)
          Create a new JMS EPR.
JMSEpr(java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.lang.String jndiUrl, java.lang.String jndiContextFactory, java.lang.String jndiPkgPrefix, java.lang.String messageSelector)
          Create a new JMS EPR.
JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.lang.String jndiUrl, java.lang.String jndiContextFactory, java.lang.String jndiPkgPrefix, java.lang.String messageSelector)
          Create a new JMS EPR.
 
Method Summary
 java.lang.String getConnectionFactory()
           
 java.lang.String getDestinationName()
           
 java.lang.String getDestinationType()
           
 java.lang.String getJndiContextFactory()
           
 java.lang.String getJndiPkgPrefix()
           
 java.lang.String getJndiURL()
           
 java.lang.String getMessageSelector()
           
 java.lang.String getVersion()
           
static java.net.URI type()
           
 
Methods inherited from class org.jboss.soa.esb.addressing.EPR
copy, equals, getAddr, setAddr, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JMS_PROTOCOL

public static final java.lang.String JMS_PROTOCOL
See Also:
Constant Field Values

PROTOCOL_SEPARATOR

public static final java.lang.String PROTOCOL_SEPARATOR
See Also:
Constant Field Values

ONE_ONE_PROTOCOL

public static final java.lang.String ONE_ONE_PROTOCOL
See Also:
Constant Field Values

ONE_ZERO_TWO_PROTOCOL

public static final java.lang.String ONE_ZERO_TWO_PROTOCOL
See Also:
Constant Field Values

SPECIFICATION_VERSION_TAG

public static final java.lang.String SPECIFICATION_VERSION_TAG
See Also:
Constant Field Values

DESTINATION_TYPE_TAG

public static final java.lang.String DESTINATION_TYPE_TAG
See Also:
Constant Field Values

DESTINATION_NAME_TAG

public static final java.lang.String DESTINATION_NAME_TAG
See Also:
Constant Field Values

CONNECTION_FACTORY_TAG

public static final java.lang.String CONNECTION_FACTORY_TAG
See Also:
Constant Field Values

JNDI_PKG_PREFIX_TAG

public static final java.lang.String JNDI_PKG_PREFIX_TAG
See Also:
Constant Field Values

JNDI_URL_TAG

public static final java.lang.String JNDI_URL_TAG
See Also:
Constant Field Values

JNDI_CONTEXT_FACTORY_TAG

public static final java.lang.String JNDI_CONTEXT_FACTORY_TAG
See Also:
Constant Field Values

MESSAGE_SELECTOR_TAG

public static final java.lang.String MESSAGE_SELECTOR_TAG
See Also:
Constant Field Values

QUEUE_TYPE

public static final java.lang.String QUEUE_TYPE
See Also:
Constant Field Values

TOPIC_TYPE

public static final java.lang.String TOPIC_TYPE
See Also:
Constant Field Values
Constructor Detail

JMSEpr

public JMSEpr(EPR epr)

JMSEpr

public JMSEpr(EPR epr,
              org.w3c.dom.Element header)

JMSEpr

public JMSEpr(java.lang.String destinationType,
              java.lang.String destinationName,
              java.lang.String connection)
Create a new JMS EPR. The protocol version is assumed to be 1.1. , jndi_type="", jndi_url="", messageSelector=null

Parameters:
destinationType - the type of destination (queue/topic).
destinationName - name of the queue/topic.
connection - reference to the connection factory.

JMSEpr

public JMSEpr(java.lang.String destinationType,
              java.lang.String destinationName,
              java.lang.String connection,
              java.lang.String jndiUrl,
              java.lang.String jndiContextFactory,
              java.lang.String jndiPkgPrefix,
              java.lang.String messageSelector)
Create a new JMS EPR. The protocol version is assumed to be 1.1.

Parameters:
destinationType - the type of destination (queue/topic).
destinationName - name of the queue/topic.
connection - reference to the connection factory.
jndiType - reference to the type of jndi to obtain the JMS objects from
jndiUrl - reference to the location of the jndi to obtain the JMS objects from
messageSelector - reference to the connection factory.

JMSEpr

public JMSEpr(java.lang.String protocol,
              java.lang.String destinationType,
              java.lang.String destinationName,
              java.lang.String connection,
              java.lang.String jndiUrl,
              java.lang.String jndiContextFactory,
              java.lang.String jndiPkgPrefix,
              java.lang.String messageSelector)
Create a new JMS EPR.

Parameters:
protocol - the protocol version.
destinationType - the type of destination (queue/topic).
destinationName - name of the queue/topic.
connection - reference to the connection factory.
jndiType - reference to the type of jndi to obtain the JMS objects from
jndiUrl - reference to the location of the jndi to obtain the JMS objects from
messageSelector - reference to the connection factory.
Method Detail

getDestinationType

public final java.lang.String getDestinationType()
                                          throws java.net.URISyntaxException
Returns:
the destination type used.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getVersion

public final java.lang.String getVersion()
                                  throws java.net.URISyntaxException
Returns:
the specification version used.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getDestinationName

public final java.lang.String getDestinationName()
                                          throws java.net.URISyntaxException
Returns:
the destination name used.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getConnectionFactory

public final java.lang.String getConnectionFactory()
                                            throws java.net.URISyntaxException
Returns:
the connection factory for this EPR, or null if none is set.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getJndiContextFactory

public final java.lang.String getJndiContextFactory()
                                             throws java.net.URISyntaxException
Returns:
the jndi context factory for this EPR, or null if none is set.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getJndiPkgPrefix

public final java.lang.String getJndiPkgPrefix()
                                        throws java.net.URISyntaxException
Returns:
the jndi pkg prefix for this EPR, or null if none is set.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getJndiURL

public final java.lang.String getJndiURL()
                                  throws java.net.URISyntaxException
Returns:
the jndi URL for this EPR, or null if none is set.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

getMessageSelector

public final java.lang.String getMessageSelector()
                                          throws java.net.URISyntaxException
Returns:
the message selector for this EPR, or null if none is set.
Throws:
java.net.URISyntaxException - thrown if the address is malformed.

type

public static final java.net.URI type()