1 22 package org.jboss.resource.adapter.jms; 23 24 import java.util.Enumeration ; 25 26 import javax.jms.JMSException ; 27 import javax.jms.MapMessage ; 28 29 35 public class JmsMapMessage extends JmsMessage implements MapMessage 36 { 37 43 public JmsMapMessage(MapMessage message, JmsSession session) 44 { 45 super(message, session); 46 } 47 48 public boolean getBoolean(String name) throws JMSException 49 { 50 return ((MapMessage ) message).getBoolean(name); 51 } 52 53 public byte getByte(String name) throws JMSException 54 { 55 return ((MapMessage ) message).getByte(name); 56 } 57 58 public byte[] getBytes(String name) throws JMSException 59 { 60 return ((MapMessage ) message).getBytes(name); 61 } 62 63 public char getChar(String name) throws JMSException 64 { 65 return ((MapMessage ) message).getChar(name); 66 } 67 68 public double getDouble(String name) throws JMSException 69 { 70 return ((MapMessage ) message).getDouble(name); 71 } 72 73 public float getFloat(String name) throws JMSException 74 { 75 return ((MapMessage ) message).getFloat(name); 76 } 77 78 public int getInt(String name) throws JMSException 79 { 80 return ((MapMessage ) message).getInt(name); 81 } 82 83 public long getLong(String name) throws JMSException 84 { 85 return ((MapMessage ) message).getLong(name); 86 } 87 88 public Enumeration getMapNames() throws JMSException 89 { 90 return ((MapMessage ) message).getMapNames(); 91 } 92 93 public Object getObject(String name) throws JMSException 94 { 95 return ((MapMessage ) message).getObject(name); 96 } 97 98 public short getShort(String name) throws JMSException 99 { 100 return ((MapMessage ) message).getShort(name); 101 } 102 103 public String getString(String name) throws JMSException 104 { 105 return ((MapMessage ) message).getString(name); 106 } 107 108 public boolean itemExists(String name) throws JMSException 109 { 110 return ((MapMessage ) message).itemExists(name); 111 } 112 113 public void setBoolean(String name, boolean value) throws JMSException 114 { 115 ((MapMessage ) message).setBoolean(name, value); 116 } 117 118 public void setByte(String name, byte value) throws JMSException 119 { 120 ((MapMessage ) message).setByte(name, value); 121 } 122 123 public void setBytes(String name, byte[] value, int offset, int length) throws JMSException 124 { 125 ((MapMessage ) message).setBytes(name, value, offset, length); 126 } 127 128 public void setBytes(String name, byte[] value) throws JMSException 129 { 130 ((MapMessage ) message).setBytes(name, value); 131 } 132 133 public void setChar(String name, char value) throws JMSException 134 { 135 ((MapMessage ) message).setChar(name, value); 136 } 137 138 public void setDouble(String name, double value) throws JMSException 139 { 140 ((MapMessage ) message).setDouble(name, value); 141 } 142 143 public void setFloat(String name, float value) throws JMSException 144 { 145 ((MapMessage ) message).setFloat(name, value); 146 } 147 148 public void setInt(String name, int value) throws JMSException 149 { 150 ((MapMessage ) message).setInt(name, value); 151 } 152 153 public void setLong(String name, long value) throws JMSException 154 { 155 ((MapMessage ) message).setLong(name, value); 156 } 157 158 public void setObject(String name, Object value) throws JMSException 159 { 160 ((MapMessage ) message).setObject(name, value); 161 } 162 163 public void setShort(String name, short value) throws JMSException 164 { 165 ((MapMessage ) message).setShort(name, value); 166 } 167 168 public void setString(String name, String value) throws JMSException 169 { 170 ((MapMessage ) message).setString(name, value); 171 } 172 } 173 | Popular Tags |