|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.mischiefbox.dmud.message.Message
Message object. Stores a complete message, including the associated originating connection. Acts as a kind of "network event" that is consumed by the message handler, passed to a processor, modified, and passed back to the output queue where is is consumed by the connection handler.
| Field Summary | |
static String |
FOOTER
The header that indicates the end of a message. |
static String |
HEADER
The header that indicates the start of a message. |
protected String |
sConnectionId
Connection id. |
protected String |
sMessageContent
Message content. |
| Constructor Summary | |
Message(String sConnectionId,
String sMessageContent)
Create a new Message object. |
|
| Method Summary | |
byte[] |
getBytes()
Get the message's byte representation. |
String |
getConnectionId()
Get the Message's associated connection id. |
String |
getContent()
Get the Message's content. |
void |
setConnectionId(String sConnectionId)
Set the Message's associated connection id. |
void |
setContent(String sMessageContent)
Set the Message's content. |
String |
toString()
Get the message information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String HEADER
public static final String FOOTER
protected String sConnectionId
protected String sMessageContent
| Constructor Detail |
public Message(String sConnectionId,
String sMessageContent)
sConnectionId - the source or destination connection id.sMessageContent - the content of the message.| Method Detail |
public String getConnectionId()
public void setConnectionId(String sConnectionId)
sConnectionId - the source or destination connection id.public String getContent()
public void setContent(String sMessageContent)
sMessageContent - the message content.public byte[] getBytes()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||