Class BasicHttpServerCodec.Encoder

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToMessageEncoder<Object>
io.netty.handler.codec.http.HttpObjectEncoder<io.netty.handler.codec.http.HttpResponse>
io.netty.handler.codec.http.HttpResponseEncoder
com.linkedin.alpini.netty4.handlers.BasicHttpServerCodec.Encoder
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelOutboundHandler
Enclosing class:
BasicHttpServerCodec

protected class BasicHttpServerCodec.Encoder extends io.netty.handler.codec.http.HttpResponseEncoder
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    encodeInitialLine(io.netty.buffer.ByteBuf buf, io.netty.handler.codec.http.HttpResponse msg)
     
    protected boolean
    isContentAlwaysEmpty(io.netty.handler.codec.http.HttpResponse msg)
     

    Methods inherited from class io.netty.handler.codec.http.HttpResponseEncoder

    acceptOutboundMessage, sanitizeHeadersBeforeEncode

    Methods inherited from class io.netty.handler.codec.http.HttpObjectEncoder

    encode, encodeAscii, encodeHeaders

    Methods inherited from class io.netty.handler.codec.MessageToMessageEncoder

    write

    Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter

    bind, close, connect, deregister, disconnect, flush, read

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler

    exceptionCaught, handlerAdded, handlerRemoved
  • Constructor Details

    • Encoder

      protected Encoder()
  • Method Details

    • encodeInitialLine

      protected void encodeInitialLine(io.netty.buffer.ByteBuf buf, io.netty.handler.codec.http.HttpResponse msg) throws Exception
      Overrides:
      encodeInitialLine in class io.netty.handler.codec.http.HttpResponseEncoder
      Throws:
      Exception
    • isContentAlwaysEmpty

      protected boolean isContentAlwaysEmpty(io.netty.handler.codec.http.HttpResponse msg)
      Overrides:
      isContentAlwaysEmpty in class io.netty.handler.codec.http.HttpResponseEncoder