org.apache.qpid.client.message
Class JMSHeaderAdapter
java.lang.Object
org.apache.qpid.client.message.JMSHeaderAdapter
public final class JMSHeaderAdapter
- extends Object
Constructor Summary |
JMSHeaderAdapter(org.apache.qpid.framing.FieldTable headers)
|
Method Summary |
protected void |
checkIdentiferFormat(CharSequence propertyName)
|
protected void |
checkPropertyName(CharSequence propertyName)
|
void |
clear()
|
boolean |
getBoolean(org.apache.qpid.framing.AMQShortString string)
|
boolean |
getBoolean(String string)
|
byte |
getByte(String string)
|
byte[] |
getBytes(org.apache.qpid.framing.AMQShortString string)
|
byte[] |
getBytes(String string)
|
char |
getCharacter(String string)
|
double |
getDouble(String string)
|
float |
getFloat(String string)
|
org.apache.qpid.framing.FieldTable |
getHeaders()
|
int |
getInteger(String string)
|
long |
getLong(String string)
|
Enumeration |
getMapNames()
|
Object |
getObject(String string)
|
Enumeration |
getPropertyNames()
|
short |
getShort(String string)
|
String |
getString(String string)
|
boolean |
isEmpty()
|
boolean |
itemExists(String string)
|
boolean |
propertyExists(org.apache.qpid.framing.AMQShortString propertyName)
|
boolean |
propertyExists(String propertyName)
|
Object |
put(Object key,
Object value)
|
Object |
remove(org.apache.qpid.framing.AMQShortString propertyName)
|
Object |
remove(String propertyName)
|
void |
setBoolean(org.apache.qpid.framing.AMQShortString string,
boolean b)
|
void |
setBoolean(String string,
boolean b)
|
void |
setByte(org.apache.qpid.framing.AMQShortString string,
byte b)
|
void |
setByte(String string,
byte b)
|
Object |
setBytes(org.apache.qpid.framing.AMQShortString string,
byte[] bytes)
|
Object |
setBytes(String string,
byte[] bytes)
|
Object |
setBytes(String string,
byte[] bytes,
int start,
int length)
|
void |
setChar(String string,
char c)
|
void |
setDouble(String string,
double v)
|
void |
setFloat(String string,
float v)
|
void |
setInteger(org.apache.qpid.framing.AMQShortString string,
int i)
|
void |
setInteger(String string,
int i)
|
void |
setLong(String string,
long l)
|
void |
setObject(String string,
Object object)
|
void |
setShort(String string,
short i)
|
void |
setString(org.apache.qpid.framing.AMQShortString string,
String string1)
|
void |
setString(String string,
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 |
JMSHeaderAdapter
public JMSHeaderAdapter(org.apache.qpid.framing.FieldTable headers)
getHeaders
public org.apache.qpid.framing.FieldTable getHeaders()
getBoolean
public boolean getBoolean(String string)
throws JMSException
- Throws:
JMSException
getBoolean
public boolean getBoolean(org.apache.qpid.framing.AMQShortString string)
throws JMSException
- Throws:
JMSException
getCharacter
public char getCharacter(String string)
throws JMSException
- Throws:
JMSException
getBytes
public byte[] getBytes(String string)
throws JMSException
- Throws:
JMSException
getBytes
public byte[] getBytes(org.apache.qpid.framing.AMQShortString string)
throws JMSException
- Throws:
JMSException
getByte
public byte getByte(String string)
throws JMSException
- Throws:
JMSException
getShort
public short getShort(String string)
throws JMSException
- Throws:
JMSException
getInteger
public int getInteger(String string)
throws JMSException
- Throws:
JMSException
getLong
public long getLong(String string)
throws JMSException
- Throws:
JMSException
getFloat
public float getFloat(String string)
throws JMSException
- Throws:
JMSException
getDouble
public double getDouble(String string)
throws JMSException
- Throws:
JMSException
getString
public String getString(String string)
throws JMSException
- Throws:
JMSException
getObject
public Object getObject(String string)
throws JMSException
- Throws:
JMSException
setBoolean
public void setBoolean(org.apache.qpid.framing.AMQShortString string,
boolean b)
throws JMSException
- Throws:
JMSException
setBoolean
public void setBoolean(String string,
boolean b)
throws JMSException
- Throws:
JMSException
setChar
public void setChar(String string,
char c)
throws JMSException
- Throws:
JMSException
setBytes
public Object setBytes(org.apache.qpid.framing.AMQShortString string,
byte[] bytes)
setBytes
public Object setBytes(String string,
byte[] bytes)
setBytes
public Object setBytes(String string,
byte[] bytes,
int start,
int length)
setByte
public void setByte(String string,
byte b)
throws JMSException
- Throws:
JMSException
setByte
public void setByte(org.apache.qpid.framing.AMQShortString string,
byte b)
throws JMSException
- Throws:
JMSException
setShort
public void setShort(String string,
short i)
throws JMSException
- Throws:
JMSException
setInteger
public void setInteger(String string,
int i)
throws JMSException
- Throws:
JMSException
setInteger
public void setInteger(org.apache.qpid.framing.AMQShortString string,
int i)
throws JMSException
- Throws:
JMSException
setLong
public void setLong(String string,
long l)
throws JMSException
- Throws:
JMSException
setFloat
public void setFloat(String string,
float v)
throws JMSException
- Throws:
JMSException
setDouble
public void setDouble(String string,
double v)
throws JMSException
- Throws:
JMSException
setString
public void setString(String string,
String string1)
throws JMSException
- Throws:
JMSException
setString
public void setString(org.apache.qpid.framing.AMQShortString string,
String string1)
throws JMSException
- Throws:
JMSException
setObject
public void setObject(String string,
Object object)
throws JMSException
- Throws:
JMSException
itemExists
public boolean itemExists(String string)
throws JMSException
- Throws:
JMSException
getPropertyNames
public Enumeration getPropertyNames()
clear
public void clear()
propertyExists
public boolean propertyExists(org.apache.qpid.framing.AMQShortString propertyName)
propertyExists
public boolean propertyExists(String propertyName)
put
public Object put(Object key,
Object value)
remove
public Object remove(org.apache.qpid.framing.AMQShortString propertyName)
remove
public Object remove(String propertyName)
isEmpty
public boolean isEmpty()
writeToBuffer
public void writeToBuffer(org.apache.mina.common.ByteBuffer data)
getMapNames
public Enumeration getMapNames()
checkPropertyName
protected void checkPropertyName(CharSequence propertyName)
checkIdentiferFormat
protected void checkIdentiferFormat(CharSequence propertyName)
Licensed to the Apache Software Foundation