|
Spring Web Services Framework | |||||||||
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(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 |
getHeaderNames(Message message)
Returns an iterator over all header names in the given message. |
static Iterator |
getHeaders(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(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(Destination destination) throws URISyntaxException, JMSException
jms
URI.
destination
- the destination
URISyntaxException
JMSException
public static String getDestinationName(URI uri)
public static void addHeader(Message message, String name, String value) throws JMSException
JMSException
public static Iterator getHeaderNames(Message message) throws JMSException
jmsPropertyToHeader(String)
.
JMSException
public static Iterator getHeaders(Message message, String name) throws JMSException
headerToJmsProperty(String)
.
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
.
JmsTransportConstants.BYTES_MESSAGE_TYPE
,
JmsTransportConstants.TEXT_MESSAGE_TYPE
public static long getTimeToLive(URI uri)
Message.DEFAULT_TIME_TO_LIVE
public static int getPriority(URI uri)
Message.DEFAULT_PRIORITY
public static String getReplyToName(URI uri)
Message.setJMSReplyTo(Destination)
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |