public class ProtocolMultiplexerDecoder
extends org.jboss.netty.handler.codec.frame.FrameDecoder
Modifier and Type | Field and Description |
---|---|
private int |
bytesForProtocolCheck |
private static org.slf4j.Logger |
LOG |
private LoginProtocol |
loginProtocol |
Constructor and Description |
---|
ProtocolMultiplexerDecoder(int bytesForProtocolCheck,
LoginProtocol loginProtocol) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(org.jboss.netty.buffer.ChannelBuffer buffer,
org.jboss.netty.channel.Channel channel) |
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
int |
getBytesForProtocolCheck() |
LoginProtocol |
getLoginProtocol() |
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, extractFrame, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulation
private static final org.slf4j.Logger LOG
private final LoginProtocol loginProtocol
private final int bytesForProtocolCheck
public ProtocolMultiplexerDecoder(int bytesForProtocolCheck, LoginProtocol loginProtocol)
protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer) throws Exception
decode
in class org.jboss.netty.handler.codec.frame.FrameDecoder
Exception
protected void close(org.jboss.netty.buffer.ChannelBuffer buffer, org.jboss.netty.channel.Channel channel)
public LoginProtocol getLoginProtocol()
public int getBytesForProtocolCheck()
Copyright © 2013. All Rights Reserved.