org.apache.wsif.util.jms
Class WSIFJMSProperties

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.apache.wsif.util.jms.WSIFJMSProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static java.lang.String CORRELATIONID
           
static java.lang.String DELIVERYMODE
           
static java.lang.String DESTINATION
           
static java.lang.String EXPIRATION
           
static java.lang.String IN
           
static java.lang.String MESSAGEID
           
static java.lang.String OUT
           
static java.lang.String PRIORITY
           
static java.lang.String QCF_PASSWORD
           
static java.lang.String QCF_USERID
           
static java.lang.String REDELIVERED
           
static java.lang.String REPLYTO
           
static java.lang.String TIMESTAMP
           
static java.lang.String TIMETOLIVE
           
static java.lang.String TYPE
           
 
Constructor Summary
WSIFJMSProperties(java.lang.String direction)
          Constructor for WSIFJMSProperties
WSIFJMSProperties(WSIFJMSProperties props)
          Constructor for WSIFJMSProperties from another HashMap.
 
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
 

Field Detail

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
Constructor Detail

WSIFJMSProperties

public WSIFJMSProperties(java.lang.String direction)
                  throws WSIFException
Constructor for WSIFJMSProperties

Throws:
WSIFException

WSIFJMSProperties

public WSIFJMSProperties(WSIFJMSProperties props)
Constructor for WSIFJMSProperties from another HashMap.

Method Detail

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()
Specified by:
clear in interface java.util.Map
Overrides:
clear in class java.util.HashMap

get

public java.lang.Object get(java.lang.Object o1)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap

put

public java.lang.Object put(java.lang.Object o1,
                            java.lang.Object o2)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap

putAll

public void putAll(java.util.HashMap hm)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap

deep

public java.lang.String deep()


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.