org.apache.qpid.client.message
Class JMSHeaderAdapter

java.lang.Object
  extended by org.apache.qpid.client.message.JMSHeaderAdapter

public final class JMSHeaderAdapter
extends java.lang.Object


Constructor Summary
JMSHeaderAdapter(FieldTable headers)
           
 
Method Summary
protected static void checkIdentiferFormat(java.lang.CharSequence propertyName)
           
protected static void checkPropertyName(java.lang.CharSequence propertyName)
           
 void clear()
           
 boolean getBoolean(AMQShortString string)
           
 boolean getBoolean(java.lang.String string)
           
 byte getByte(java.lang.String string)
           
 byte[] getBytes(AMQShortString string)
           
 byte[] getBytes(java.lang.String string)
           
 char getCharacter(java.lang.String string)
           
 double getDouble(java.lang.String string)
           
 float getFloat(java.lang.String string)
           
 FieldTable getHeaders()
           
 int getInteger(java.lang.String string)
           
 long getLong(java.lang.String string)
           
 java.util.Enumeration getMapNames()
           
 java.lang.Object getObject(java.lang.String string)
           
 java.util.Enumeration getPropertyNames()
           
 short getShort(java.lang.String string)
           
 java.lang.String getString(java.lang.String string)
           
 boolean isEmpty()
           
 boolean itemExists(java.lang.String string)
           
 boolean propertyExists(AMQShortString propertyName)
           
 boolean propertyExists(java.lang.String propertyName)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(AMQShortString propertyName)
           
 java.lang.Object remove(java.lang.String propertyName)
           
 void setBoolean(AMQShortString string, boolean b)
           
 void setBoolean(java.lang.String string, boolean b)
           
 void setByte(AMQShortString string, byte b)
           
 void setByte(java.lang.String string, byte b)
           
 java.lang.Object setBytes(AMQShortString string, byte[] bytes)
           
 java.lang.Object setBytes(java.lang.String string, byte[] bytes)
           
 java.lang.Object setBytes(java.lang.String string, byte[] bytes, int start, int length)
           
 void setChar(java.lang.String string, char c)
           
 void setDouble(java.lang.String string, double v)
           
 void setFloat(java.lang.String string, float v)
           
 void setInteger(AMQShortString string, int i)
           
 void setInteger(java.lang.String string, int i)
           
 void setLong(java.lang.String string, long l)
           
 void setObject(java.lang.String string, java.lang.Object object)
           
 void setShort(java.lang.String string, short i)
           
 void setString(AMQShortString string, java.lang.String string1)
           
 void setString(java.lang.String string, java.lang.String string1)
           
 void writeToBuffer(org.apache.mina.common.ByteBuffer data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSHeaderAdapter

public JMSHeaderAdapter(FieldTable headers)
Method Detail

getHeaders

public FieldTable getHeaders()

getBoolean

public boolean getBoolean(java.lang.String string)
                   throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getBoolean

public boolean getBoolean(AMQShortString string)
                   throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getCharacter

public char getCharacter(java.lang.String string)
                  throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getBytes

public byte[] getBytes(java.lang.String string)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getBytes

public byte[] getBytes(AMQShortString string)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getByte

public byte getByte(java.lang.String string)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getShort

public short getShort(java.lang.String string)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getInteger

public int getInteger(java.lang.String string)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getLong

public long getLong(java.lang.String string)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getFloat

public float getFloat(java.lang.String string)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getDouble

public double getDouble(java.lang.String string)
                 throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getString

public java.lang.String getString(java.lang.String string)
                           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getObject

public java.lang.Object getObject(java.lang.String string)
                           throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setBoolean

public void setBoolean(AMQShortString string,
                       boolean b)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setBoolean

public void setBoolean(java.lang.String string,
                       boolean b)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setChar

public void setChar(java.lang.String string,
                    char c)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setBytes

public java.lang.Object setBytes(AMQShortString string,
                                 byte[] bytes)

setBytes

public java.lang.Object setBytes(java.lang.String string,
                                 byte[] bytes)

setBytes

public java.lang.Object setBytes(java.lang.String string,
                                 byte[] bytes,
                                 int start,
                                 int length)

setByte

public void setByte(java.lang.String string,
                    byte b)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setByte

public void setByte(AMQShortString string,
                    byte b)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setShort

public void setShort(java.lang.String string,
                     short i)
              throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setInteger

public void setInteger(java.lang.String string,
                       int i)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setInteger

public void setInteger(AMQShortString string,
                       int i)
                throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setLong

public void setLong(java.lang.String string,
                    long l)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setFloat

public void setFloat(java.lang.String string,
                     float v)
              throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setDouble

public void setDouble(java.lang.String string,
                      double v)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setString

public void setString(java.lang.String string,
                      java.lang.String string1)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setString

public void setString(AMQShortString string,
                      java.lang.String string1)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

setObject

public void setObject(java.lang.String string,
                      java.lang.Object object)
               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

itemExists

public boolean itemExists(java.lang.String string)
                   throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getPropertyNames

public java.util.Enumeration getPropertyNames()

clear

public void clear()

propertyExists

public boolean propertyExists(AMQShortString propertyName)

propertyExists

public boolean propertyExists(java.lang.String propertyName)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)

remove

public java.lang.Object remove(AMQShortString propertyName)

remove

public java.lang.Object remove(java.lang.String propertyName)

isEmpty

public boolean isEmpty()

writeToBuffer

public void writeToBuffer(org.apache.mina.common.ByteBuffer data)

getMapNames

public java.util.Enumeration getMapNames()

checkPropertyName

protected static void checkPropertyName(java.lang.CharSequence propertyName)

checkIdentiferFormat

protected static void checkIdentiferFormat(java.lang.CharSequence propertyName)


Copyright © 2007. All Rights Reserved.