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

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
static java.lang.String IN
           
static java.lang.String OUT
           
 
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

OUT

public static final java.lang.String OUT
Constructor Detail

WSIFJMSProperties

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

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

getPropertiesFromMessage

public void getPropertiesFromMessage(javax.jms.Message message)
                              throws WSIFException
Get all the properties from a Message and load them into this HashMap.

clear

public void clear()
Overrides:
clear in class java.util.HashMap

get

public java.lang.Object get(java.lang.Object o1)
Overrides:
get in class java.util.HashMap

put

public java.lang.Object put(java.lang.Object o1,
                            java.lang.Object o2)
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, 2002 Apache XML Project. All Rights Reserved.