|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.transport.jms.support.JmsTransportUtils
public abstract class JmsTransportUtils
Collection of utility methods to work with JMS transports. Includes methods to retrieve JMS properties from an URI.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String headerToJmsProperty(String headerName)
headerName - the header name to transform
public static String jmsPropertyToHeader(String propertyName)
propertyName - the JMS property name to transform
public static URI toUri(javax.jms.Destination destination)
throws URISyntaxException,
javax.jms.JMSException
jms URI.
destination - the destination
URISyntaxException
javax.jms.JMSExceptionpublic 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.JMSExceptionpublic static int getDeliveryMode(URI uri)
DeliveryMode.NON_PERSISTENT,
DeliveryMode.PERSISTENT,
Message.DEFAULT_DELIVERY_MODEpublic static int getMessageType(URI uri)
JmsTransportConstants.BYTES_MESSAGE_TYPE.
JmsTransportConstants.BYTES_MESSAGE_TYPE,
JmsTransportConstants.TEXT_MESSAGE_TYPEpublic static long getTimeToLive(URI uri)
Message.DEFAULT_TIME_TO_LIVEpublic static int getPriority(URI uri)
Message.DEFAULT_PRIORITYpublic static String getReplyToName(URI uri)
Message.setJMSReplyTo(Destination)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||