com.sun.grizzly.filter
Class FragmentMessage

java.lang.Object
  extended by com.sun.grizzly.filter.MessageBase
      extended by com.sun.grizzly.filter.FragmentMessage
All Implemented Interfaces:
Message

public class FragmentMessage
extends MessageBase

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.

Version:
1.0
Author:
John Vieten 22.06.2008

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(ByteBuffer byteBuffer)
           
 List<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

FragmentMessage

public FragmentMessage()
Method Detail

addByteBuffer

public void addByteBuffer(ByteBuffer byteBuffer)

getByteBufferList

public List<ByteBuffer> getByteBufferList()


Copyright © 2012 Oracle Corporation. All Rights Reserved.