@Override
    public ProtocolEncoder getEncoder(IoSession session) throws Exception {
        return encoder;
    }
@author Robert HG (254963746@qq.com) on 11/4/15.
lts-core/src/main/java/com/github/ltsopensource/remoting/mina/MinaCodecFactory.java