org.jboss.soa.esb.addressing.eprs
Class JMSEpr
java.lang.Object
org.jboss.soa.esb.addressing.EPR
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
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.util.Properties environment,
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.util.Properties environment,
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.util.Properties environment,
java.lang.String messageSelector,
boolean peristent)
Create a new JMS EPR. |
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
DEFAULT_REPLY_TO_DESTINATION_SUFFIX
public static final java.lang.String DEFAULT_REPLY_TO_DESTINATION_SUFFIX
- See Also:
- Constant Field Values
PERSISTENT_TAG
public static final java.lang.String PERSISTENT_TAG
- See Also:
- Constant Field Values
ACKNOWLEDGE_MODE_TAG
public static final java.lang.String ACKNOWLEDGE_MODE_TAG
- See Also:
- Constant Field Values
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.util.Properties environment,
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.environment
- reference to the jndi propertiesmessageSelector
- 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.util.Properties environment,
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.environment
- reference to the jndi propertiesmessageSelector
- 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.util.Properties environment,
java.lang.String messageSelector,
boolean peristent)
- 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.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistently
JMSEpr
public JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr)
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.
getJndiEnvironment
public final java.util.Properties getJndiEnvironment()
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.
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.
getPersistent
public final boolean getPersistent()
- Returns:
- the delivery mode
getAcknowledgeMode
public final int getAcknowledgeMode()
toString
public java.lang.String toString()
- Overrides:
toString
in class EPR
type
public static final java.net.URI type()