|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.easybeans.component.smartclient.message.AbsMessage
org.ow2.easybeans.component.smartclient.message.AbsNameMessage
public abstract class AbsNameMessage
Abstract class that can be used to exchange a message with a name inside.
| Field Summary |
|---|
| Fields inherited from interface org.ow2.easybeans.component.smartclient.api.Message |
|---|
HEADER_SIZE, INT_BYTE_SIZE |
| Constructor Summary | |
|---|---|
AbsNameMessage(java.nio.ByteBuffer dataBuffer)
Builds a message by using the data contains in the bytebuffer. |
|
AbsNameMessage(java.lang.String name)
Builds a new message with the given name. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Gets the name of this message. |
abstract byte |
getOpCode()
Gets the OpCode of this message. |
java.nio.ByteBuffer |
getSubMessage()
Gets the content of this message (only this part, not the header). |
| Methods inherited from class org.ow2.easybeans.component.smartclient.message.AbsMessage |
|---|
decode, encode, getMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbsNameMessage(java.lang.String name)
name - the given namepublic AbsNameMessage(java.nio.ByteBuffer dataBuffer)
dataBuffer - the data of the message to extract.| Method Detail |
|---|
public java.lang.String getName()
public abstract byte getOpCode()
getOpCode in interface MessagegetOpCode in class AbsMessagepublic java.nio.ByteBuffer getSubMessage()
getSubMessage in class AbsMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||