|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.messaging.common.Header
The class maintains the name/value pair to represent a header of the MessagePart. A few commonly used headers are defined as constants in MessagePart class. The application specific header can be added as long as both sender and recipient agree upon the meaning associated with the header name.
Constructor Summary | |
Header() | |
Header(java.lang.String name, java.lang.String value) Constructor. |
Method Summary | |
java.lang.String |
getName() Returns the name of this header. |
java.lang.String |
getValue() Returns the value of this header. |
void |
readExternal(java.io.ObjectInput oi) Read a message instance from a stream. |
void |
setName(java.lang.String name, java.lang.String value) Set the name and value of the header. |
void |
writeExternal(java.io.ObjectOutput oo) Write a message instance to a stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Header()
public Header(java.lang.String name, java.lang.String value)
Method Detail |
public java.lang.String getName()
public java.lang.String getValue()
public void setName(java.lang.String name, java.lang.String value)
name
- name of the header.value
- value of the header.public void readExternal(java.io.ObjectInput oi) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
oi
- the stream to read from.java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput oo) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
oo
- the stream to write to.java.io.IOException
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |