Class HttpClientCodec.Encoder

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
Enclosing class:
HttpClientCodec

private final class HttpClientCodec.Encoder extends HttpRequestEncoder
  • Field Details

    • upgraded

      boolean upgraded
  • Constructor Details

    • Encoder

      private Encoder()
  • Method Details

    • encode

      protected void encode(ChannelHandlerContext ctx, java.lang.Object msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
      Description copied from class: MessageToMessageEncoder
      Encode from one message to an other. This method will be called for each written message that can be handled by this encoder.
      Overrides:
      encode in class HttpObjectEncoder<HttpRequest>
      Parameters:
      ctx - the ChannelHandlerContext which this MessageToMessageEncoder belongs to
      msg - the message to encode to an other one
      out - the List into which the encoded msg should be added needs to do some kind of aggregation
      Throws:
      java.lang.Exception - is thrown if an error occurs