org.apache.wsif.util.jms
Class WSIFJMSProperties
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.apache.wsif.util.jms.WSIFJMSProperties
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class WSIFJMSProperties
- extends java.util.HashMap
WSIFJMSProperties is a HashMap of jms properties. The WSIFJMSProperties can either be IN
or OUT. If IN, the properties can only set on a QueueSender. If OUT, the properties
can only be got from a message. Reflection is used to set and get the properties in JMS.
Using reflection avoids having a table of properties that would have to updated for
different JMS implementations and different versions of JMS.
- Author:
- Mark Whitlock
- See Also:
- Serialized Form
Method Summary |
void |
clear()
|
java.lang.String |
deep()
|
java.lang.Object |
get(java.lang.Object o1)
|
void |
getPropertiesFromMessage(javax.jms.Message message)
Get all the properties from a Message and load them into this HashMap. |
java.lang.Object |
put(java.lang.Object o1,
java.lang.Object o2)
|
void |
putAll(java.util.HashMap hm)
|
boolean |
set(javax.jms.MessageProducer producer,
javax.jms.Message message)
Set all the properties that have been loaded into this HashMap on a QueueSender. |
java.lang.String |
toString()
|
Methods inherited from class java.util.HashMap |
clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
IN
public static final java.lang.String IN
- See Also:
- Constant Field Values
OUT
public static final java.lang.String OUT
- See Also:
- Constant Field Values
CORRELATIONID
public static final java.lang.String CORRELATIONID
- See Also:
- Constant Field Values
DELIVERYMODE
public static final java.lang.String DELIVERYMODE
- See Also:
- Constant Field Values
DESTINATION
public static final java.lang.String DESTINATION
- See Also:
- Constant Field Values
EXPIRATION
public static final java.lang.String EXPIRATION
- See Also:
- Constant Field Values
MESSAGEID
public static final java.lang.String MESSAGEID
- See Also:
- Constant Field Values
PRIORITY
public static final java.lang.String PRIORITY
- See Also:
- Constant Field Values
REDELIVERED
public static final java.lang.String REDELIVERED
- See Also:
- Constant Field Values
REPLYTO
public static final java.lang.String REPLYTO
- See Also:
- Constant Field Values
TIMESTAMP
public static final java.lang.String TIMESTAMP
- See Also:
- Constant Field Values
TIMETOLIVE
public static final java.lang.String TIMETOLIVE
- See Also:
- Constant Field Values
TYPE
public static final java.lang.String TYPE
- See Also:
- Constant Field Values
QCF_USERID
public static final java.lang.String QCF_USERID
- See Also:
- Constant Field Values
QCF_PASSWORD
public static final java.lang.String QCF_PASSWORD
- See Also:
- Constant Field Values
WSIFJMSProperties
public WSIFJMSProperties(java.lang.String direction)
throws WSIFException
- Constructor for WSIFJMSProperties
WSIFJMSProperties
public WSIFJMSProperties(WSIFJMSProperties props)
- Constructor for WSIFJMSProperties from another HashMap.
set
public boolean set(javax.jms.MessageProducer producer,
javax.jms.Message message)
throws WSIFException
- Set all the properties that have been loaded into this HashMap on a QueueSender.
- Returns:
- whether any properties were set on this QueueSender
- Throws:
WSIFException
getPropertiesFromMessage
public void getPropertiesFromMessage(javax.jms.Message message)
throws WSIFException
- Get all the properties from a Message and load them into this HashMap.
- Throws:
WSIFException
clear
public void clear()
get
public java.lang.Object get(java.lang.Object o1)
put
public java.lang.Object put(java.lang.Object o1,
java.lang.Object o2)
putAll
public void putAll(java.util.HashMap hm)
toString
public java.lang.String toString()
deep
public java.lang.String deep()
Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.