public class HessianDecoder
extends io.netty.handler.codec.LengthFieldBasedFrameDecoder
| Constructor and Description |
|---|
HessianDecoder(io.netty.handler.codec.serialization.ClassResolver classResolver)
Creates a new decoder whose maximum object size is
1048576 bytes. |
HessianDecoder(int maxObjectSize,
io.netty.handler.codec.serialization.ClassResolver classResolver)
Creates a new decoder with the specified maximum object size.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
protected io.netty.buffer.ByteBuf |
extractFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
int index,
int length) |
decode, getUnadjustedFrameLengthactualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic HessianDecoder(io.netty.handler.codec.serialization.ClassResolver classResolver)
1048576 bytes.
If the size of the received object is greater than 1048576 bytes,
a StreamCorruptedException will be raised.classResolver - the ClassResolver to use for this decoderpublic HessianDecoder(int maxObjectSize,
io.netty.handler.codec.serialization.ClassResolver classResolver)
maxObjectSize - the maximum byte length of the serialized object. if the
length of the received object is greater than this value,
StreamCorruptedException will be raised.classResolver - the ClassResolver which will load the class of the
serialized objectprotected Object decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws Exception
decode in class io.netty.handler.codec.LengthFieldBasedFrameDecoderExceptionprotected io.netty.buffer.ByteBuf extractFrame(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf buffer,
int index,
int length)
extractFrame in class io.netty.handler.codec.LengthFieldBasedFrameDecoderCopyright © 2006–2018 TinyGroup. All rights reserved.