Class HttpClientEncoder

  • All Implemented Interfaces:
    ProtocolEncoder

    public class HttpClientEncoder
    extends java.lang.Object
    implements ProtocolEncoder
    An encoder for the HTTP client
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.nio.charset.CharsetEncoder ENCODER  
      private static org.slf4j.Logger LOGGER  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose​(IoSession arg0)
      Releases all resources related with this encoder.
      void encode​(IoSession session, java.lang.Object message, ProtocolEncoderOutput out)
      Encodes higher-level message objects into binary or protocol-specific data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • ENCODER

        private static final java.nio.charset.CharsetEncoder ENCODER
    • Constructor Detail

      • HttpClientEncoder

        public HttpClientEncoder()
    • Method Detail

      • dispose

        public void dispose​(IoSession arg0)
                     throws java.lang.Exception
        Releases all resources related with this encoder.
        Specified by:
        dispose in interface ProtocolEncoder
        Parameters:
        arg0 - The current Session
        Throws:
        java.lang.Exception - if failed to dispose all resources