|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMessage
IMessage represents an abstract message containing a message body and an arbitrary number of headers.
| Method Summary | |
|---|---|
java.lang.String |
getHeaderInfo(java.lang.String key)
getHeaderInfo returns the value of the header associated with key, if any |
java.util.Enumeration |
getHeaders()
getHeaders yields an Enumeration of header keys associated with an IMessage |
java.lang.String |
getMessage()
getMessage returns the message body of an IMessage |
void |
removeAllHeaders()
removeAllHeaders removes all headers from an IMessage |
void |
setHeaderInfo(java.lang.String key,
java.lang.String info)
setHeaderInfo sets the value of a specified header for an IMessage, adding the header if necessary |
void |
setMessage(java.lang.String s)
setMessage sets the value of the message body for an IMessage |
java.lang.String |
toString()
toString yields the String representation of an IMessage. |
| Method Detail |
|---|
java.lang.String getHeaderInfo(java.lang.String key)
key - the header name to be extractedjava.util.Enumeration getHeaders()
java.lang.String getMessage()
void removeAllHeaders()
void setHeaderInfo(java.lang.String key,
java.lang.String info)
key - the header name to be setinfo - the header valuevoid setMessage(java.lang.String s)
s - the new message bodyjava.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||