Modifier and Type | Method and Description |
---|---|
static void |
addHeader(javax.jms.Message message,
String name,
String value)
Adds the given header to the specified message.
|
static int |
getDeliveryMode(URI uri)
Returns the delivery mode of the given URI.
|
static String |
getDestinationName(URI uri)
Returns the destination name of the given URI.
|
static Iterator<String> |
getHeaderNames(javax.jms.Message message)
Returns an iterator over all header names in the given message.
|
static Iterator<String> |
getHeaders(javax.jms.Message message,
String name)
Returns an iterator over all the header values of the given message and header name.
|
static int |
getMessageType(URI uri)
Returns the message type of the given URI.
|
static int |
getPriority(URI uri)
Returns the priority of the given URI.
|
static String |
getReplyToName(URI uri)
Returns the reply-to name of the given URI.
|
static long |
getTimeToLive(URI uri)
Returns the lifetime, in milliseconds, of the given URI.
|
static String |
headerToJmsProperty(String headerName)
Converts the given transport header to a JMS property name.
|
static String |
jmsPropertyToHeader(String propertyName)
Converts the given JMS property name to a transport header name.
|
static URI |
toUri(javax.jms.Destination destination)
Converts the given JMS destination into a
jms URI. |
public static String headerToJmsProperty(String headerName)
headerName
- the header name to transformpublic static String jmsPropertyToHeader(String propertyName)
propertyName
- the JMS property name to transformpublic static URI toUri(javax.jms.Destination destination) throws URISyntaxException, javax.jms.JMSException
jms
URI.destination
- the destinationURISyntaxException
javax.jms.JMSException
public static String getDestinationName(URI uri)
public static void addHeader(javax.jms.Message message, String name, String value) throws javax.jms.JMSException
javax.jms.JMSException
public static Iterator<String> getHeaderNames(javax.jms.Message message) throws javax.jms.JMSException
jmsPropertyToHeader(String)
.javax.jms.JMSException
public static Iterator<String> getHeaders(javax.jms.Message message, String name) throws javax.jms.JMSException
headerToJmsProperty(String)
.javax.jms.JMSException
public static int getDeliveryMode(URI uri)
DeliveryMode.NON_PERSISTENT
,
DeliveryMode.PERSISTENT
,
Message.DEFAULT_DELIVERY_MODE
public static int getMessageType(URI uri)
JmsTransportConstants.BYTES_MESSAGE_TYPE
.public static long getTimeToLive(URI uri)
Message.DEFAULT_TIME_TO_LIVE
public static int getPriority(URI uri)
Message.DEFAULT_PRIORITY
Copyright © 2019 Pivotal Software. All rights reserved.