com.sun.grizzly.filter
Class InputStreamMessage

java.lang.Object
  extended by com.sun.grizzly.filter.MessageBase
      extended by com.sun.grizzly.filter.InputStreamMessage
All Implemented Interfaces:
Message
Direct Known Subclasses:
ReplyMessage, RequestMessage

public class InputStreamMessage
extends MessageBase

Gives an Message an RemoteInputStream so that clients can retrieve the Message Payload by getting this Message InputStream. When parsing a Message CustomProtocolParser will by calling addByteBuffer(java.nio.ByteBuffer) to add Payload to this Message. If this Message is expecting further Payload bytes MessageDispatcher will keep on adding Fragments until End-Fragment is read in. When this Message has all its bytes read in allDataParsed() will be called to signal EOF to the Inputstream.

Version:
1.0
Author:
John Vieten 27.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
InputStreamMessage()
           
 
Method Summary
 InputStream getInputStream()
           
 
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

InputStreamMessage

public InputStreamMessage()
Method Detail

getInputStream

public InputStream getInputStream()


Copyright © 2012 Oracle Corporation. All Rights Reserved.