|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.filter.MessageBase
com.sun.grizzly.filter.FragmentMessage
public class FragmentMessage
Since the Custom Protocol is a fixed sized Protocol
when the size of an Message is larger than Message.MessageMaxLength
8192 an Message gets split into Fragments. The Contract is that the first Message for Example
RequestMessage gets its Flag moreFragmentsToFollow set and then
n FragmentMessage Messages follow the last one returning moreFragmentsToFollow()==false.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.grizzly.filter.Message |
|---|
Message.ErrorCode |
| Field Summary |
|---|
| Fields inherited from class com.sun.grizzly.filter.MessageBase |
|---|
flags, messageType, requestId, sessionId, uniqueMessageId, useGzip |
| Fields inherited from interface com.sun.grizzly.filter.Message |
|---|
APPLICATION_LAYER_ERROR_BIT, CurrentVersion, GZIP_BIT, HeaderLength, Magic, MagicByteLength, Message_Error, Message_Fragment, Message_Reply, Message_Request, MessageMaxLength, MORE_FRAGMENTS_BIT |
| Constructor Summary | |
|---|---|
FragmentMessage()
|
|
| Method Summary | |
|---|---|
void |
addByteBuffer(java.nio.ByteBuffer byteBuffer)
|
java.util.List<java.nio.ByteBuffer> |
getByteBufferList()
|
| Methods inherited from class com.sun.grizzly.filter.MessageBase |
|---|
checkMagic, getMessageSize, getMessageType, getNeededBytesSize, getRequestId, getSessionId, getUniqueMessageId, isApplicationLayerException, isClean, isError, isGzip, moreFragmentsToFollow, parseHeader, setMessageType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FragmentMessage()
| Method Detail |
|---|
public void addByteBuffer(java.nio.ByteBuffer byteBuffer)
public java.util.List<java.nio.ByteBuffer> getByteBufferList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||