com.sun.grizzly.filter
Class InputStreamMessage
java.lang.Object
com.sun.grizzly.filter.MessageBase
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
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 |
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 |
InputStreamMessage
public InputStreamMessage()
getInputStream
public InputStream getInputStream()
Copyright © 2012 Oracle Corporation. All Rights Reserved.