public class MessageFilter
extends org.glassfish.grizzly.filterchain.BaseFilter
Buffer to Message transformation.
Message protocol format is:
Message Header is MessageImpl.HEADER_LENGTH and composed of following fields.
magicNumber integer MessageImpl.MAGIC_NUMBER
version integer MessageImpl.VERSION
type integer Message.getType() for possible values
messageLength integer MessageImpl.maxTotalMessageLength
Message Body is composed of following fields.
payload byte[messageLen]
MessageHeader Message#parseHeader(com.sun.enterprise.mgmt.transport.Buffer, int)
MessageBody Message#parseMessage(com.sun.enterprise.mgmt.transport.Buffer, int, int)| Constructor and Description |
|---|
MessageFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.grizzly.filterchain.NextAction |
handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
org.glassfish.grizzly.filterchain.NextAction |
handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx) |
public org.glassfish.grizzly.filterchain.NextAction handleRead(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
handleRead in interface org.glassfish.grizzly.filterchain.FilterhandleRead in class org.glassfish.grizzly.filterchain.BaseFilterIOExceptionpublic org.glassfish.grizzly.filterchain.NextAction handleWrite(org.glassfish.grizzly.filterchain.FilterChainContext ctx)
throws IOException
handleWrite in interface org.glassfish.grizzly.filterchain.FilterhandleWrite in class org.glassfish.grizzly.filterchain.BaseFilterIOExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.