Class XMPPEncoder

  • All Implemented Interfaces:
    org.apache.mina.filter.codec.ProtocolEncoder

    public class XMPPEncoder
    extends org.apache.mina.filter.codec.ProtocolEncoderAdapter
    Encoder that does nothing. We are already writing ByteBuffers so there is no need to encode them.

    This class exists as a counterpart of XMPPDecoder. Unlike that class this class does nothing.

    Author:
    Gaston Dombiak
    • Constructor Detail

      • XMPPEncoder

        public XMPPEncoder()
    • Method Detail

      • encode

        public void encode​(org.apache.mina.core.session.IoSession session,
                           Object message,
                           org.apache.mina.filter.codec.ProtocolEncoderOutput out)
                    throws Exception
        Throws:
        Exception