Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Packages
  • Interfaces
  • Classes
  • Exceptions
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Packages
    Package
    Description
    io.netty.channel.oio
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio
    use NIO / EPOLL / KQUEUE transport.
    io.netty.handler.codec.serialization
    This package has been deprecated with no replacement, because serialization can be a security liability
  • Deprecated Interfaces
    Interface
    Description
    io.netty.bootstrap.ChannelFactory
    Use ChannelFactory instead.
    io.netty.buffer.ByteBufProcessor
    Use ByteProcessor.
    io.netty.channel.RecvByteBufAllocator.Handle
    Use RecvByteBufAllocator.ExtendedHandle.
    io.netty.channel.socket.oio.OioDatagramChannelConfig
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.OioServerSocketChannelConfig
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.OioSocketChannelConfig
    use NIO / EPOLL / KQUEUE transport.
    io.netty.handler.codec.http.Cookie
    Use Cookie instead.
    io.netty.handler.codec.serialization.ClassResolver
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.ssl.ApplicationProtocolNegotiator
    use ApplicationProtocolConfig
    io.netty.handler.ssl.JdkApplicationProtocolNegotiator
    use ApplicationProtocolConfig
    io.netty.handler.ssl.OpenSslApplicationProtocolNegotiator
    use ApplicationProtocolConfig
    io.netty.util.concurrent.AbstractEventExecutor.LazyRunnable
    override SingleThreadEventExecutor.wakesUpForTask(java.lang.Runnable) to re-create this behaviour
    io.netty.util.concurrent.SingleThreadEventExecutor.NonWakeupRunnable
    override SingleThreadEventExecutor.wakesUpForTask(java.lang.Runnable) to re-create this behaviour
    io.netty.util.ResourceLeak
    please use ResourceLeakTracker as it may lead to false-positives.
  • Deprecated Classes
    Class
    Description
    io.netty.buffer.AbstractDerivedByteBuf
    Do not use.
    io.netty.buffer.DuplicatedByteBuf
    Do not use.
    io.netty.buffer.ReadOnlyByteBuf
    Do not use.
    io.netty.buffer.SlicedByteBuf
    Do not use.
    io.netty.buffer.SwappedByteBuf
    use the Little Endian accessors, e.g. getShortLE, getIntLE instead.
    io.netty.channel.ChannelPromiseAggregator
    Use PromiseCombiner Class which is used to consolidate multiple channel futures into one, by listening to the individual futures and producing an aggregated result (success/failure) when all futures have completed.
    io.netty.channel.ChannelPromiseNotifier
    use PromiseNotifier.
    io.netty.channel.epoll.SegmentedDatagramPacket
    use SegmentedDatagramPacket.
    io.netty.channel.local.LocalEventLoopGroup
    Use DefaultEventLoopGroup instead.
    io.netty.channel.oio.AbstractOioByteChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.oio.AbstractOioChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.oio.AbstractOioMessageChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.oio.OioByteStreamChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.oio.OioEventLoopGroup
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.DefaultOioServerSocketChannelConfig
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.DefaultOioSocketChannelConfig
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.OioDatagramChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.OioServerSocketChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.socket.oio.OioSocketChannel
    use NIO / EPOLL / KQUEUE transport.
    io.netty.channel.ThreadPerChannelEventLoop
    this will be remove in the next-major release.
    io.netty.channel.ThreadPerChannelEventLoopGroup
    this will be remove in the next-major release.
    io.netty.handler.codec.compression.SnappyFramedDecoder
    Use SnappyFrameDecoder instead.
    io.netty.handler.codec.compression.SnappyFramedEncoder
    Use SnappyFrameEncoder instead.
    io.netty.handler.codec.http.ClientCookieEncoder
    io.netty.handler.codec.http.CookieDecoder
    Use ClientCookieDecoder or ServerCookieDecoder instead. Decodes an HTTP header value into Cookies. This decoder can decode the HTTP cookie version 0, 1, and 2.
     HttpRequest req = ...;
     String value = req.getHeader("Cookie");
     Set<Cookie> cookies = CookieDecoder.decode(value);
     
    io.netty.handler.codec.http.CookieUtil
    Duplicate of package private $CookieUtil
    io.netty.handler.codec.http.cors.CorsConfig.Builder
    Use CorsConfigBuilder instead.
    io.netty.handler.codec.http.cors.CorsConfig.DateValueGenerator
    Removed without alternatives.
    io.netty.handler.codec.http.DefaultCookie
    Use DefaultCookie instead.
    io.netty.handler.codec.http.EmptyHttpHeaders.InstanceInitializer
    io.netty.handler.codec.http.HttpHeaderDateFormat
    Use DateFormatter instead
    io.netty.handler.codec.http.HttpHeaders.Names
    Use HttpHeaderNames instead. Standard HTTP header names.
    io.netty.handler.codec.http.HttpHeaders.Values
    Use HttpHeaderValues instead. Standard HTTP header values.
    io.netty.handler.codec.http.ServerCookieEncoder
    Use ServerCookieEncoder instead
    io.netty.handler.codec.http2.Http2MultiplexCodec
    use Http2FrameCodecBuilder together with Http2MultiplexHandler.
    io.netty.handler.codec.http2.Http2MultiplexCodecBuilder
    use Http2FrameCodecBuilder together with Http2MultiplexHandler.
    io.netty.handler.codec.rtsp.RtspHeaders
    Use RtspHeaderNames or RtspHeaderValues instead. Standard RTSP header names and values.
    io.netty.handler.codec.rtsp.RtspHeaders.Names
    Use RtspHeaderNames instead. Standard RTSP header names.
    io.netty.handler.codec.rtsp.RtspHeaders.Values
    Use RtspHeaderValues instead. Standard RTSP header values.
    io.netty.handler.codec.rtsp.RtspObjectDecoder
    Use RtspDecoder instead.
    io.netty.handler.codec.rtsp.RtspObjectEncoder
    Use RtspEncoder instead.
    io.netty.handler.codec.rtsp.RtspRequestDecoder
    Use RtspDecoder directly instead
    io.netty.handler.codec.rtsp.RtspRequestEncoder
    Use RtspEncoder directly instead
    io.netty.handler.codec.rtsp.RtspResponseDecoder
    Use RtspDecoder directly instead
    io.netty.handler.codec.rtsp.RtspResponseEncoder
    Use RtspEncoder directly instead
    io.netty.handler.codec.serialization.ClassResolvers
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.codec.serialization.CompatibleObjectEncoder
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.codec.serialization.ObjectDecoder
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.codec.serialization.ObjectDecoderInputStream
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.codec.serialization.ObjectEncoder
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.codec.serialization.ObjectEncoderOutputStream
    This class has been deprecated with no replacement, because serialization can be a security liability
    io.netty.handler.ssl.JdkAlpnApplicationProtocolNegotiator
    use ApplicationProtocolConfig.
    io.netty.handler.ssl.JdkNpnApplicationProtocolNegotiator
    use ApplicationProtocolConfig.
    io.netty.handler.ssl.JdkSslClientContext
    Use SslContextBuilder to create JdkSslContext instances and only use JdkSslContext in your code.
    io.netty.handler.ssl.JdkSslServerContext
    Use SslContextBuilder to create JdkSslContext instances and only use JdkSslContext in your code.
    io.netty.handler.ssl.OpenSslDefaultApplicationProtocolNegotiator
    use ApplicationProtocolConfig.
    io.netty.handler.ssl.OpenSslNpnApplicationProtocolNegotiator
    use ApplicationProtocolConfig
    io.netty.util.concurrent.PromiseAggregator
    Use PromiseCombiner(EventExecutor). GenericFutureListener implementation which consolidates multiple Futures into one, by listening to individual Futures and producing an aggregated result (success/failure) when all Futures have completed.
    io.netty.util.concurrent.UnaryPromiseNotifier
    use PromiseNotifier.cascade(boolean, Future, Promise).
    io.netty.util.DomainMappingBuilder
    Use DomainWildcardMappingBuilder instead.
    io.netty.util.DomainNameMapping
    Use DomainWildcardMappingBuilder}
    io.netty.util.DomainNameMappingBuilder
    Use DomainWildcardMappingBuilder
    io.netty.util.internal.ConcurrentSet
    For removal in Netty 4.2. Please use ConcurrentHashMap#newKeySet() instead
    io.netty.util.internal.IntegerHolder
    For removal in netty 4.2
    io.netty.util.internal.logging.CommonsLogger
    Please use Log4J2Logger or Log4JLogger or Slf4JLogger.
    io.netty.util.internal.logging.CommonsLoggerFactory
    Please use Log4J2LoggerFactory or Log4JLoggerFactory or Slf4JLoggerFactory.
    io.netty.util.internal.UnpaddedInternalThreadLocalMap
    This class will be removed in the future.
    io.netty.util.ThreadDeathWatcher
    will be removed in the next major release
  • Deprecated Exceptions
    Exceptions
    Description
    io.netty.util.ResourceLeakException
    This class will be removed in the future version.
  • Deprecated Fields
    Field
    Description
    io.netty.buffer.ByteBufProcessor.FIND_CR
    Use ByteProcessor.FIND_CR.
    io.netty.buffer.ByteBufProcessor.FIND_CRLF
    Use ByteProcessor.FIND_CRLF.
    io.netty.buffer.ByteBufProcessor.FIND_LF
    Use ByteProcessor.FIND_LF.
    io.netty.buffer.ByteBufProcessor.FIND_LINEAR_WHITESPACE
    Use ByteProcessor.FIND_LINEAR_WHITESPACE.
    io.netty.buffer.ByteBufProcessor.FIND_NON_CR
    Use ByteProcessor.FIND_NON_CR.
    io.netty.buffer.ByteBufProcessor.FIND_NON_CRLF
    Use ByteProcessor.FIND_NON_CRLF.
    io.netty.buffer.ByteBufProcessor.FIND_NON_LF
    Use ByteProcessor.FIND_NON_LF.
    io.netty.buffer.ByteBufProcessor.FIND_NON_LINEAR_WHITESPACE
    Use ByteProcessor.FIND_NON_LINEAR_WHITESPACE.
    io.netty.buffer.ByteBufProcessor.FIND_NON_NUL
    Use ByteProcessor.FIND_NON_NUL.
    io.netty.buffer.ByteBufProcessor.FIND_NUL
    Use ByteProcessor.FIND_NUL.
    io.netty.channel.AdaptiveRecvByteBufAllocator.DEFAULT
    There is state for DefaultMaxMessagesRecvByteBufAllocator.maxMessagesPerRead() which is typically based upon channel type.
    io.netty.channel.ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION
    io.netty.channel.ChannelOption.MAX_MESSAGES_PER_READ
    Use MaxMessagesRecvByteBufAllocator and MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int).
    io.netty.channel.ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK
    Use ChannelOption.WRITE_BUFFER_WATER_MARK
    io.netty.channel.ChannelOption.WRITE_BUFFER_LOW_WATER_MARK
    Use ChannelOption.WRITE_BUFFER_WATER_MARK
    io.netty.channel.epoll.EpollChannelOption.TCP_FASTOPEN
    Use ChannelOption.TCP_FASTOPEN instead.
    io.netty.channel.epoll.EpollChannelOption.TCP_FASTOPEN_CONNECT
    Use ChannelOption.TCP_FASTOPEN_CONNECT instead.
    io.netty.channel.epoll.Native.IS_SUPPORTING_TCP_FASTOPEN
    Use Epoll.isTcpFastOpenClientSideAvailable() or Epoll.isTcpFastOpenServerSideAvailable().
    io.netty.channel.unix.Socket.UDS_SUN_PATH_SIZE
    io.netty.handler.codec.http.EmptyHttpHeaders.InstanceInitializer.EMPTY_HEADERS
    io.netty.handler.codec.http.HttpHeaderNames.KEEP_ALIVE
    use HttpHeaderNames.CONNECTION "keep-alive"
    io.netty.handler.codec.http.HttpHeaderNames.PROXY_CONNECTION
    use HttpHeaderNames.CONNECTION "proxy-connection"
    io.netty.handler.codec.http.HttpHeaders.EMPTY_HEADERS
    Use EmptyHttpHeaders.INSTANCE.

    The instance is instantiated here to break the cyclic static initialization between EmptyHttpHeaders and HttpHeaders. The issue is that if someone accesses EmptyHttpHeaders.INSTANCE before HttpHeaders.EMPTY_HEADERS then HttpHeaders.EMPTY_HEADERS will be null.

    io.netty.handler.codec.http.HttpObjectDecoder.validateHeaders
    io.netty.handler.ssl.SslProtocols.SSL_v2
    SSLv2 is no longer secure. Consider using SslProtocols.TLS_v1_2 or SslProtocols.TLS_v1_3
    io.netty.handler.ssl.SslProtocols.SSL_v2_HELLO
    SSLv2Hello is no longer secure. Consider using SslProtocols.TLS_v1_2 or SslProtocols.TLS_v1_3
    io.netty.handler.ssl.SslProtocols.SSL_v3
    SSLv3 is no longer secure. Consider using SslProtocols.TLS_v1_2 or SslProtocols.TLS_v1_3
    io.netty.handler.ssl.SslProtocols.TLS_v1
    TLSv1 is no longer secure. Consider using SslProtocols.TLS_v1_2 or SslProtocols.TLS_v1_3
    io.netty.handler.ssl.SslProtocols.TLS_v1_1
    TLSv1.1 is no longer secure. Consider using SslProtocols.TLS_v1_2 or SslProtocols.TLS_v1_3
    io.netty.util.internal.InternalThreadLocalMap.rp1
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp2
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp3
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp4
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp5
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp6
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp7
    These padding fields will be removed in the future.
    io.netty.util.internal.InternalThreadLocalMap.rp8
    These padding fields will be removed in the future.
  • Deprecated Methods
    Method
    Description
    io.netty.bootstrap.AbstractBootstrap.channelFactory(ChannelFactory<? extends C>)
    Use AbstractBootstrap.channelFactory(io.netty.channel.ChannelFactory) instead.
    io.netty.bootstrap.AbstractBootstrap.group()
    Use AbstractBootstrap.config() instead.
    io.netty.bootstrap.ServerBootstrap.childGroup()
    Use ServerBootstrap.config() instead.
    io.netty.buffer.AbstractPooledDerivedByteBuf.order()
    io.netty.buffer.AbstractUnpooledSlicedByteBuf.order()
    io.netty.buffer.ByteBuf.order()
    use the Little Endian accessors, e.g. getShortLE, getIntLE instead of creating a buffer with swapped endianness.
    io.netty.buffer.ByteBuf.order(ByteOrder)
    use the Little Endian accessors, e.g. getShortLE, getIntLE instead of creating a buffer with swapped endianness.
    io.netty.buffer.DuplicatedByteBuf.order()
    io.netty.buffer.PoolArenaMetric.numActiveTinyAllocations()
    Tiny allocations have been merged into small allocations.
    io.netty.buffer.PoolArenaMetric.numTinyAllocations()
    Tiny allocations have been merged into small allocations.
    io.netty.buffer.PoolArenaMetric.numTinyDeallocations()
    Tiny deallocations have been merged into small deallocations.
    io.netty.buffer.PoolArenaMetric.numTinySubpages()
    Tiny sub-pages have been merged into small sub-pages.
    io.netty.buffer.PoolArenaMetric.tinySubpages()
    Tiny sub-pages have been merged into small sub-pages.
    io.netty.buffer.PooledByteBufAllocator.chunkSize()
    use PooledByteBufAllocatorMetric.chunkSize().
    io.netty.buffer.PooledByteBufAllocator.defaultTinyCacheSize()
    Tiny caches have been merged into small caches.
    io.netty.buffer.PooledByteBufAllocator.directArenas()
    use PooledByteBufAllocatorMetric.directArenas().
    io.netty.buffer.PooledByteBufAllocator.freeThreadLocalCache()
    will be removed Free all cached buffers for the calling Thread.
    io.netty.buffer.PooledByteBufAllocator.hasThreadLocalCache()
    will be removed Returns true if the calling Thread has a ThreadLocal cache for the allocated buffers.
    io.netty.buffer.PooledByteBufAllocator.heapArenas()
    use PooledByteBufAllocatorMetric.heapArenas().
    io.netty.buffer.PooledByteBufAllocator.normalCacheSize()
    use PooledByteBufAllocatorMetric.normalCacheSize().
    io.netty.buffer.PooledByteBufAllocator.numDirectArenas()
    use PooledByteBufAllocatorMetric.numDirectArenas().
    io.netty.buffer.PooledByteBufAllocator.numHeapArenas()
    use PooledByteBufAllocatorMetric.numHeapArenas().
    io.netty.buffer.PooledByteBufAllocator.numThreadLocalCaches()
    use PooledByteBufAllocatorMetric.numThreadLocalCaches().
    io.netty.buffer.PooledByteBufAllocator.smallCacheSize()
    use PooledByteBufAllocatorMetric.smallCacheSize().
    io.netty.buffer.PooledByteBufAllocator.tinyCacheSize()
    use PooledByteBufAllocatorMetric.tinyCacheSize().
    io.netty.buffer.PooledByteBufAllocatorMetric.tinyCacheSize()
    Tiny caches have been merged into small caches.
    io.netty.buffer.PooledUnsafeHeapByteBuf.newSwappedByteBuf()
    io.netty.buffer.ReadOnlyByteBuf.order()
    io.netty.buffer.Unpooled.unmodifiableBuffer(ByteBuf)
    Use ByteBuf.asReadOnly().
    io.netty.buffer.Unpooled.unmodifiableBuffer(ByteBuf...)
    Use Unpooled.wrappedUnmodifiableBuffer(ByteBuf...).
    io.netty.buffer.UnpooledUnsafeHeapByteBuf.newSwappedByteBuf()
    io.netty.channel.AbstractChannel.invalidateLocalAddress()
    no use-case for this.
    io.netty.channel.AbstractChannel.invalidateRemoteAddress()
    no use-case for this.
    io.netty.channel.ChannelConfig.getMaxMessagesPerRead()
    Use MaxMessagesRecvByteBufAllocator and MaxMessagesRecvByteBufAllocator.maxMessagesPerRead().

    Returns the maximum number of messages to read per read loop. a channelRead() event. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.

    io.netty.channel.ChannelConfig.setMaxMessagesPerRead(int)
    Use MaxMessagesRecvByteBufAllocator and MaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int).

    Sets the maximum number of messages to read per read loop. If this value is greater than 1, an event loop might attempt to read multiple times to procure multiple messages.

    io.netty.channel.ChannelFlushPromiseNotifier.add(ChannelPromise, int)
    use ChannelFlushPromiseNotifier.add(ChannelPromise, long)
    io.netty.channel.ChannelFlushPromiseNotifier.notifyFlushFutures()
    use ChannelFlushPromiseNotifier.notifyPromises()
    io.netty.channel.ChannelFlushPromiseNotifier.notifyFlushFutures(Throwable)
    use ChannelFlushPromiseNotifier.notifyPromises(Throwable)
    io.netty.channel.ChannelFlushPromiseNotifier.notifyFlushFutures(Throwable, Throwable)
    use ChannelFlushPromiseNotifier.notifyPromises(Throwable, Throwable)
    io.netty.channel.ChannelHandler.exceptionCaught(ChannelHandlerContext, Throwable)
    if you want to handle this event you should implement ChannelInboundHandler and implement the method there.
    io.netty.channel.ChannelHandlerAdapter.exceptionCaught(ChannelHandlerContext, Throwable)
    is part of ChannelInboundHandler
    io.netty.channel.ChannelHandlerContext.attr(AttributeKey<T>)
    Use AttributeMap.attr(AttributeKey)
    io.netty.channel.ChannelHandlerContext.hasAttr(AttributeKey<T>)
    Use AttributeMap.hasAttr(AttributeKey)
    io.netty.channel.ChannelOption.newInstance(String)
    use ChannelOption.valueOf(String).
    io.netty.channel.ChannelOutboundBuffer.recycle()
    io.netty.channel.DefaultChannelConfig.getMaxMessagesPerRead()
    io.netty.channel.DefaultChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.DefaultFileRegion.transfered()
    io.netty.channel.embedded.EmbeddedChannel.lastInboundBuffer()
    use EmbeddedChannel.inboundMessages()
    io.netty.channel.embedded.EmbeddedChannel.lastOutboundBuffer()
    use EmbeddedChannel.outboundMessages()
    io.netty.channel.embedded.EmbeddedEventLoop.register(Channel, ChannelPromise)
    io.netty.channel.embedded.EmbeddedEventLoop.shutdown()
    io.netty.channel.epoll.EpollChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.EpollDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollDatagramChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollDatagramChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.EpollDomainDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollDomainSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollDomainSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollDomainSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.EpollServerChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollServerChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollServerChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.EpollServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollServerSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollServerSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.EpollSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.epoll.EpollSocketChannelConfig.setTcpKeepCntl(int)
    use EpollSocketChannelConfig.setTcpKeepCnt(int)
    io.netty.channel.epoll.EpollSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.epoll.EpollSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.epoll.Native.epollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)
    this method is no longer supported. This functionality is internal to this package.
    io.netty.channel.epoll.Native.sendmmsg(int, NativeDatagramPacketArray.NativeDatagramPacket[], int, int)
    io.netty.channel.EventLoopGroup.register(Channel, ChannelPromise)
    Use EventLoopGroup.register(ChannelPromise) instead.
    io.netty.channel.FileRegion.transfered()
    Use FileRegion.transferred() instead.
    io.netty.channel.group.ChannelGroup.deregister()
    This method will be removed in the next major feature release. Deregister all Channels in this group from their EventLoop. Please note that this operation is asynchronous as ChannelOutboundInvoker.deregister() is.
    io.netty.channel.group.ChannelGroup.deregister(ChannelMatcher)
    This method will be removed in the next major feature release. Deregister all Channels in this group from their EventLoop that are matched by the given ChannelMatcher. Please note that this operation is asynchronous as ChannelOutboundInvoker.deregister() is.
    io.netty.channel.group.ChannelGroup.flushAndWrite(Object)
    Use ChannelGroup.writeAndFlush(Object) instead.
    io.netty.channel.group.ChannelGroup.flushAndWrite(Object, ChannelMatcher)
    Use ChannelGroup.writeAndFlush(Object, ChannelMatcher) instead.
    io.netty.channel.kqueue.KQueueChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.kqueue.KQueueDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueDatagramChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueDatagramChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.kqueue.KQueueDomainDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueDomainSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueDomainSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueDomainSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.kqueue.KQueueServerChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueServerChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueServerChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.kqueue.KQueueServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueServerSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueServerSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.kqueue.KQueueSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.kqueue.KQueueSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.kqueue.KQueueSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.MultithreadEventLoopGroup.register(Channel, ChannelPromise)
    io.netty.channel.nio.AbstractNioChannel.isReadPending()
    No longer supported. No longer supported.
    io.netty.channel.nio.AbstractNioChannel.setReadPending(boolean)
    Use AbstractNioChannel.clearReadPending() if appropriate instead. No longer supported.
    io.netty.channel.oio.AbstractOioChannel.isReadPending()
    No longer supported. No longer supported.
    io.netty.channel.oio.AbstractOioChannel.setReadPending(boolean)
    Use AbstractOioChannel.clearReadPending() if appropriate instead. No longer supported.
    io.netty.channel.SingleThreadEventLoop.register(Channel, ChannelPromise)
    io.netty.channel.socket.DatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.DefaultDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.DefaultServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.DefaultSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.DuplexChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.nio.NioDatagramChannel.setReadPending(boolean)
    io.netty.channel.socket.oio.DefaultOioServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.oio.DefaultOioSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.oio.OioServerSocketChannel.setReadPending(boolean)
    io.netty.channel.socket.oio.OioServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.oio.OioSocketChannel.setReadPending(boolean)
    io.netty.channel.socket.oio.OioSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.ServerSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.socket.SocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.ThreadPerChannelEventLoop.register(Channel, ChannelPromise)
    io.netty.channel.ThreadPerChannelEventLoopGroup.register(Channel, ChannelPromise)
    io.netty.channel.ThreadPerChannelEventLoopGroup.shutdown()
    io.netty.channel.unix.DomainDatagramChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.unix.DomainSocketChannelConfig.setMaxMessagesPerRead(int)
    io.netty.channel.unix.DomainSocketChannelConfig.setWriteBufferHighWaterMark(int)
    io.netty.channel.unix.DomainSocketChannelConfig.setWriteBufferLowWaterMark(int)
    io.netty.channel.unix.Errors.ioResult(String, int, Errors.NativeIoException, ClosedChannelException)
    io.netty.channel.unix.Errors.throwConnectException(String, int)
    Use Errors.handleConnectErrno(String, int).
    io.netty.channel.unix.IovArray.add(ByteBuf)
    Use IovArray.add(ByteBuf, int, int)
    io.netty.channel.unix.Unix.ensureAvailability()
    io.netty.channel.unix.Unix.isAvailable()
    io.netty.channel.unix.Unix.unavailabilityCause()
    io.netty.handler.codec.http.ClientCookieEncoder.encode(Cookie)
    io.netty.handler.codec.http.ClientCookieEncoder.encode(Cookie...)
    io.netty.handler.codec.http.ClientCookieEncoder.encode(Iterable<Cookie>)
    io.netty.handler.codec.http.ClientCookieEncoder.encode(String, String)
    io.netty.handler.codec.http.Cookie.comment()
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.commentUrl()
    Not part of RFC6265
    io.netty.handler.codec.http.cookie.DefaultCookie.validateValue(String, String)
    CookieUtil is package private, will be removed once old Cookie API is dropped
    io.netty.handler.codec.http.Cookie.getComment()
    Use Cookie.comment() instead.
    io.netty.handler.codec.http.Cookie.getCommentUrl()
    Use Cookie.commentUrl() instead.
    io.netty.handler.codec.http.Cookie.getDomain()
    Use Cookie.domain() instead.
    io.netty.handler.codec.http.Cookie.getMaxAge()
    Use Cookie.maxAge() instead.
    io.netty.handler.codec.http.Cookie.getName()
    Use Cookie.name() instead.
    io.netty.handler.codec.http.Cookie.getPath()
    Use Cookie.path() instead.
    io.netty.handler.codec.http.Cookie.getPorts()
    Use Cookie.ports() instead.
    io.netty.handler.codec.http.Cookie.getValue()
    Use Cookie.value() instead.
    io.netty.handler.codec.http.Cookie.getVersion()
    Use Cookie.version() instead.
    io.netty.handler.codec.http.Cookie.isDiscard()
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.maxAge()
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.ports()
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setComment(String)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setCommentUrl(String)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setDiscard(boolean)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setMaxAge(long)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setPorts(int...)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setPorts(Iterable<Integer>)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.setVersion(int)
    Not part of RFC6265
    io.netty.handler.codec.http.Cookie.version()
    Not part of RFC6265
    io.netty.handler.codec.http.cors.CorsConfig.Builder.allowCredentials()
    Use CorsConfigBuilder.allowCredentials() instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.allowedRequestHeaders(String...)
    Use CorsConfigBuilder.allowedRequestHeaders(String...) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.allowedRequestMethods(HttpMethod...)
    Use CorsConfigBuilder.allowedRequestMethods(HttpMethod...) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.allowNullOrigin()
    Use CorsConfigBuilder.allowNullOrigin() instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.build()
    Use CorsConfigBuilder.build() instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.disable()
    Use CorsConfigBuilder.disable() instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.exposeHeaders(String...)
    Use CorsConfigBuilder.exposeHeaders(String...) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.maxAge(long)
    Use CorsConfigBuilder.maxAge(long) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.noPreflightResponseHeaders()
    Use CorsConfigBuilder.noPreflightResponseHeaders() instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.preflightResponseHeader(CharSequence, Iterable<T>)
    Use CorsConfigBuilder.preflightResponseHeader(CharSequence, Iterable) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.preflightResponseHeader(CharSequence, Object...)
    Use CorsConfigBuilder.preflightResponseHeader(CharSequence, Object...) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.preflightResponseHeader(String, Callable<T>)
    Use CorsConfigBuilder.preflightResponseHeader(CharSequence, Callable) instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder.shortCurcuit()
    Use CorsConfigBuilder.shortCircuit() instead.
    io.netty.handler.codec.http.cors.CorsConfig.isShortCurcuit()
    Use CorsConfig.isShortCircuit() instead.
    io.netty.handler.codec.http.cors.CorsConfig.withAnyOrigin()
    Use CorsConfigBuilder.forAnyOrigin() instead.
    io.netty.handler.codec.http.cors.CorsConfig.withOrigin(String)
    Use CorsConfigBuilder.forOrigin(String) instead.
    io.netty.handler.codec.http.cors.CorsConfig.withOrigins(String...)
    Use CorsConfigBuilder.forOrigins(String...) instead.
    io.netty.handler.codec.http.DefaultCookie.comment()
    io.netty.handler.codec.http.DefaultCookie.commentUrl()
    io.netty.handler.codec.http.DefaultCookie.getComment()
    io.netty.handler.codec.http.DefaultCookie.getCommentUrl()
    io.netty.handler.codec.http.DefaultCookie.getDomain()
    io.netty.handler.codec.http.DefaultCookie.getMaxAge()
    io.netty.handler.codec.http.DefaultCookie.getName()
    io.netty.handler.codec.http.DefaultCookie.getPath()
    io.netty.handler.codec.http.DefaultCookie.getPorts()
    io.netty.handler.codec.http.DefaultCookie.getValue()
    io.netty.handler.codec.http.DefaultCookie.getVersion()
    io.netty.handler.codec.http.DefaultCookie.isDiscard()
    io.netty.handler.codec.http.DefaultCookie.ports()
    io.netty.handler.codec.http.DefaultCookie.setComment(String)
    io.netty.handler.codec.http.DefaultCookie.setCommentUrl(String)
    io.netty.handler.codec.http.DefaultCookie.setDiscard(boolean)
    io.netty.handler.codec.http.DefaultCookie.setPorts(int...)
    io.netty.handler.codec.http.DefaultCookie.setPorts(Iterable<Integer>)
    io.netty.handler.codec.http.DefaultCookie.setVersion(int)
    io.netty.handler.codec.http.DefaultCookie.version()
    io.netty.handler.codec.http.DefaultHttpHeaders.iterator()
    io.netty.handler.codec.http.DefaultHttpMessage.getProtocolVersion()
    io.netty.handler.codec.http.DefaultHttpObject.getDecoderResult()
    io.netty.handler.codec.http.DefaultHttpRequest.getMethod()
    io.netty.handler.codec.http.DefaultHttpRequest.getUri()
    io.netty.handler.codec.http.DefaultHttpResponse.getStatus()
    io.netty.handler.codec.http.EmptyHttpHeaders.instance()
    Use EmptyHttpHeaders.INSTANCE

    This is needed to break a cyclic static initialization loop between HttpHeaders and EmptyHttpHeaders.

    io.netty.handler.codec.http.HttpChunkedInput.readChunk(ChannelHandlerContext)
    io.netty.handler.codec.http.HttpContentCompressor.determineWrapper(String)
    io.netty.handler.codec.http.HttpHeaders.addDateHeader(HttpMessage, CharSequence, Date)
    Use HttpHeaders.add(CharSequence, Object) instead. Adds a new date header with the specified name and value. The specified value is formatted as defined in RFC2616
    io.netty.handler.codec.http.HttpHeaders.addDateHeader(HttpMessage, String, Date)
    Use HttpHeaders.add(CharSequence, Object) instead.
    io.netty.handler.codec.http.HttpHeaders.addHeader(HttpMessage, CharSequence, Object)
    Use HttpHeaders.add(CharSequence, Object) instead. Adds a new header with the specified name and value. If the specified value is not a String, it is converted into a String by Object.toString(), except for Date and Calendar which are formatted to the date format defined in RFC2616.
    io.netty.handler.codec.http.HttpHeaders.addHeader(HttpMessage, String, Object)
    Use HttpHeaders.add(CharSequence, Object) instead.
    io.netty.handler.codec.http.HttpHeaders.addIntHeader(HttpMessage, CharSequence, int)
    Use HttpHeaders.addInt(CharSequence, int) instead. Adds a new integer header with the specified name and value.
    io.netty.handler.codec.http.HttpHeaders.addIntHeader(HttpMessage, String, int)
    Use HttpHeaders.add(CharSequence, Iterable) instead.
    io.netty.handler.codec.http.HttpHeaders.clearHeaders(HttpMessage)
    Use HttpHeaders.clear() instead. Removes all headers from the specified message.
    io.netty.handler.codec.http.HttpHeaders.encodeAscii(CharSequence, ByteBuf)
    io.netty.handler.codec.http.HttpHeaders.equalsIgnoreCase(CharSequence, CharSequence)
    Use AsciiString.contentEqualsIgnoreCase(CharSequence, CharSequence) instead.
    io.netty.handler.codec.http.HttpHeaders.getContentLength(HttpMessage)
    Use HttpUtil.getContentLength(HttpMessage) instead. Returns the length of the content. Please note that this value is not retrieved from ByteBufHolder.content() but from the "Content-Length" header, and thus they are independent from each other.
    io.netty.handler.codec.http.HttpHeaders.getContentLength(HttpMessage, long)
    Use HttpUtil.getContentLength(HttpMessage, long) instead. Returns the length of the content. Please note that this value is not retrieved from ByteBufHolder.content() but from the "Content-Length" header, and thus they are independent from each other.
    io.netty.handler.codec.http.HttpHeaders.getDate(HttpMessage)
    Use HttpHeaders.getTimeMillis(CharSequence) instead. Returns the value of the "Date" header.
    io.netty.handler.codec.http.HttpHeaders.getDate(HttpMessage, Date)
    Use HttpHeaders.getTimeMillis(CharSequence, long) instead. Returns the value of the "Date" header. If there is no such header or the header is not a formatted date, the defaultValue is returned.
    io.netty.handler.codec.http.HttpHeaders.getDateHeader(HttpMessage, CharSequence)
    Use HttpHeaders.getTimeMillis(CharSequence) instead. Returns the date header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getDateHeader(HttpMessage, CharSequence, Date)
    Use HttpHeaders.getTimeMillis(CharSequence, long) instead. Returns the date header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getDateHeader(HttpMessage, String)
    Use HttpHeaders.getTimeMillis(CharSequence) instead.
    io.netty.handler.codec.http.HttpHeaders.getDateHeader(HttpMessage, String, Date)
    Use HttpHeaders.getTimeMillis(CharSequence, long) instead.
    io.netty.handler.codec.http.HttpHeaders.getHeader(HttpMessage, CharSequence)
    Use HttpHeaders.get(CharSequence) instead. Returns the header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getHeader(HttpMessage, CharSequence, String)
    Use HttpHeaders.get(CharSequence, String) instead. Returns the header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getHeader(HttpMessage, String)
    Use HttpHeaders.get(CharSequence) instead.
    io.netty.handler.codec.http.HttpHeaders.getHeader(HttpMessage, String, String)
    Use HttpHeaders.get(CharSequence, String) instead.
    io.netty.handler.codec.http.HttpHeaders.getHost(HttpMessage)
    Use HttpHeaders.get(CharSequence) instead. Returns the value of the "Host" header.
    io.netty.handler.codec.http.HttpHeaders.getHost(HttpMessage, String)
    Use HttpHeaders.get(CharSequence, String) instead. Returns the value of the "Host" header. If there is no such header, the defaultValue is returned.
    io.netty.handler.codec.http.HttpHeaders.getIntHeader(HttpMessage, CharSequence)
    Use HttpHeaders.getInt(CharSequence) instead. Returns the integer header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getIntHeader(HttpMessage, CharSequence, int)
    Use HttpHeaders.getInt(CharSequence, int) instead. Returns the integer header value with the specified header name. If there are more than one header value for the specified header name, the first value is returned.
    io.netty.handler.codec.http.HttpHeaders.getIntHeader(HttpMessage, String)
    Use HttpHeaders.getInt(CharSequence) instead.
    io.netty.handler.codec.http.HttpHeaders.getIntHeader(HttpMessage, String, int)
    Use HttpHeaders.getInt(CharSequence, int) instead.
    io.netty.handler.codec.http.HttpHeaders.is100ContinueExpected(HttpMessage)
    Use HttpUtil.is100ContinueExpected(HttpMessage) instead. Returns true if and only if the specified message contains the "Expect: 100-continue" header.
    io.netty.handler.codec.http.HttpHeaders.isContentLengthSet(HttpMessage)
    Use HttpUtil.isContentLengthSet(HttpMessage) instead.
    io.netty.handler.codec.http.HttpHeaders.isKeepAlive(HttpMessage)
    Use HttpUtil.isKeepAlive(HttpMessage) instead. Returns true if and only if the connection can remain open and thus 'kept alive'. This methods respects the value of the "Connection" header first and then the return value of HttpVersion.isKeepAliveDefault().
    io.netty.handler.codec.http.HttpHeaders.isTransferEncodingChunked(HttpMessage)
    Use HttpUtil.isTransferEncodingChunked(HttpMessage) instead. Checks to see if the transfer encoding in a specified HttpMessage is chunked
    io.netty.handler.codec.http.HttpHeaders.iterator()
    It is preferred to use HttpHeaders.iteratorCharSequence() unless you need String. If String is required then use HttpHeaders.iteratorAsString().
    io.netty.handler.codec.http.HttpHeaders.newEntity(String)
    Use AsciiString instead.

    Create a new CharSequence which is optimized for reuse as HttpHeaders name or value. So if you have a Header name or value that you want to reuse you should make use of this.

    io.netty.handler.codec.http.HttpHeaders.removeHeader(HttpMessage, CharSequence)
    Use HttpHeaders.remove(CharSequence) instead. Removes the header with the specified name.
    io.netty.handler.codec.http.HttpHeaders.removeHeader(HttpMessage, String)
    Use HttpHeaders.remove(CharSequence) instead.
    io.netty.handler.codec.http.HttpHeaders.removeTransferEncodingChunked(HttpMessage)
    Use HttpUtil.setTransferEncodingChunked(HttpMessage, boolean) instead.
    io.netty.handler.codec.http.HttpHeaders.set100ContinueExpected(HttpMessage)
    Use HttpUtil.set100ContinueExpected(HttpMessage, boolean) instead. Sets the "Expect: 100-continue" header to the specified message. If there is any existing "Expect" header, they are replaced with the new one.
    io.netty.handler.codec.http.HttpHeaders.set100ContinueExpected(HttpMessage, boolean)
    Use HttpUtil.set100ContinueExpected(HttpMessage, boolean) instead. Sets or removes the "Expect: 100-continue" header to / from the specified message. If set is true, the "Expect: 100-continue" header is set and all other previous "Expect" headers are removed. Otherwise, all "Expect" headers are removed completely.
    io.netty.handler.codec.http.HttpHeaders.setContentLength(HttpMessage, long)
    Use HttpUtil.setContentLength(HttpMessage, long) instead.
    io.netty.handler.codec.http.HttpHeaders.setDate(HttpMessage, Date)
    Use HttpHeaders.set(CharSequence, Object) instead. Sets the "Date" header.
    io.netty.handler.codec.http.HttpHeaders.setDateHeader(HttpMessage, CharSequence, Iterable<Date>)
    Use HttpHeaders.set(CharSequence, Iterable) instead. Sets a new date header with the specified name and values. If there is an existing header with the same name, the existing header is removed. The specified values are formatted as defined in RFC2616
    io.netty.handler.codec.http.HttpHeaders.setDateHeader(HttpMessage, CharSequence, Date)
    Use HttpHeaders.set(CharSequence, Object) instead. Sets a new date header with the specified name and value. If there is an existing header with the same name, the existing header is removed. The specified value is formatted as defined in RFC2616
    io.netty.handler.codec.http.HttpHeaders.setDateHeader(HttpMessage, String, Iterable<Date>)
    Use HttpHeaders.set(CharSequence, Iterable) instead.
    io.netty.handler.codec.http.HttpHeaders.setDateHeader(HttpMessage, String, Date)
    Use HttpHeaders.set(CharSequence, Object) instead.
    io.netty.handler.codec.http.HttpHeaders.setHeader(HttpMessage, CharSequence, Iterable<?>)
    Use HttpHeaders.set(CharSequence, Iterable) instead. Sets a new header with the specified name and values. If there is an existing header with the same name, the existing header is removed. This getMethod can be represented approximately as the following code:
     removeHeader(message, name);
     for (Object v: values) {
         if (v == null) {
             break;
         }
         addHeader(message, name, v);
     }
     
    io.netty.handler.codec.http.HttpHeaders.setHeader(HttpMessage, CharSequence, Object)
    Use HttpHeaders.set(CharSequence, Object) instead. Sets a new header with the specified name and value. If there is an existing header with the same name, the existing header is removed. If the specified value is not a String, it is converted into a String by Object.toString(), except for Date and Calendar which are formatted to the date format defined in RFC2616.
    io.netty.handler.codec.http.HttpHeaders.setHeader(HttpMessage, String, Iterable<?>)
    Use HttpHeaders.set(CharSequence, Iterable) instead.
    io.netty.handler.codec.http.HttpHeaders.setHeader(HttpMessage, String, Object)
    Use HttpHeaders.set(CharSequence, Object) instead.
    io.netty.handler.codec.http.HttpHeaders.setHost(HttpMessage, CharSequence)
    Use HttpHeaders.set(CharSequence, Object) instead. Sets the "Host" header.
    io.netty.handler.codec.http.HttpHeaders.setHost(HttpMessage, String)
    Use HttpHeaders.set(CharSequence, Object) instead.
    io.netty.handler.codec.http.HttpHeaders.setIntHeader(HttpMessage, CharSequence, int)
    Use HttpHeaders.setInt(CharSequence, int) instead. Sets a new integer header with the specified name and value. If there is an existing header with the same name, the existing header is removed.
    io.netty.handler.codec.http.HttpHeaders.setIntHeader(HttpMessage, CharSequence, Iterable<Integer>)
    Use HttpHeaders.set(CharSequence, Iterable) instead. Sets a new integer header with the specified name and values. If there is an existing header with the same name, the existing header is removed.
    io.netty.handler.codec.http.HttpHeaders.setIntHeader(HttpMessage, String, int)
    Use HttpHeaders.setInt(CharSequence, int) instead.
    io.netty.handler.codec.http.HttpHeaders.setIntHeader(HttpMessage, String, Iterable<Integer>)
    Use HttpHeaders.set(CharSequence, Iterable) instead.
    io.netty.handler.codec.http.HttpHeaders.setKeepAlive(HttpMessage, boolean)
    Use HttpUtil.setKeepAlive(HttpMessage, boolean) instead. Sets the value of the "Connection" header depending on the protocol version of the specified message. This getMethod sets or removes the "Connection" header depending on what the default keep alive mode of the message's protocol version is, as specified by HttpVersion.isKeepAliveDefault().
    • If the connection is kept alive by default:
      • set to "close" if keepAlive is false.
      • remove otherwise.
    • If the connection is closed by default:
      • set to "keep-alive" if keepAlive is true.
      • remove otherwise.
    io.netty.handler.codec.http.HttpHeaders.setTransferEncodingChunked(HttpMessage)
    Use HttpUtil.setTransferEncodingChunked(HttpMessage, boolean) instead.
    io.netty.handler.codec.http.HttpMessage.getProtocolVersion()
    Use HttpMessage.protocolVersion() instead.
    io.netty.handler.codec.http.HttpObject.getDecoderResult()
    Use DecoderResultProvider.decoderResult() instead.
    io.netty.handler.codec.http.HttpObjectEncoder.encodeAscii(String, ByteBuf)
    io.netty.handler.codec.http.HttpRequest.getMethod()
    Use HttpRequest.method() instead.
    io.netty.handler.codec.http.HttpRequest.getUri()
    Use HttpRequest.uri() instead.
    io.netty.handler.codec.http.HttpResponse.getStatus()
    Use HttpResponse.status() instead.
    io.netty.handler.codec.http.HttpUtil.getCharsetAsString(HttpMessage)
    use HttpUtil.getCharsetAsSequence(HttpMessage)
    io.netty.handler.codec.http.multipart.HttpDataFactory.cleanAllHttpDatas()
    Use HttpDataFactory.cleanAllHttpData() instead.
    io.netty.handler.codec.http.multipart.HttpDataFactory.cleanRequestHttpDatas(HttpRequest)
    Use HttpDataFactory.cleanRequestHttpData(HttpRequest) instead.
    io.netty.handler.codec.http.multipart.HttpPostRequestEncoder.readChunk(ChannelHandlerContext)
    io.netty.handler.codec.http.multipart.HttpPostRequestEncoder.WrappedHttpRequest.getDecoderResult()
    io.netty.handler.codec.http.ServerCookieEncoder.encode(Cookie)
    io.netty.handler.codec.http.ServerCookieEncoder.encode(Cookie...)
    io.netty.handler.codec.http.ServerCookieEncoder.encode(Iterable<Cookie>)
    io.netty.handler.codec.http.ServerCookieEncoder.encode(String, String)
    io.netty.handler.codec.http.ServerCookieEncoder.encode(Collection<Cookie>)
    io.netty.handler.codec.http.websocketx.WebSocketChunkedInput.readChunk(ChannelHandlerContext)
    Use WebSocketChunkedInput.readChunk(ByteBufAllocator). Fetches a chunked data from the stream. Once this method returns the last chunk and thus the stream has reached at its end, any subsequent WebSocketChunkedInput.isEndOfInput() call must return true.
    io.netty.handler.codec.http.websocketx.WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(Channel)
    use WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(Channel)
    io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.initialHuffmanDecodeCapacity(int)
    Huffman decoding no longer depends on having a decode capacity.
    io.netty.handler.codec.http2.Http2ConnectionHandlerBuilder.initialHuffmanDecodeCapacity(int)
    io.netty.handler.codec.http2.Http2DataChunkedInput.readChunk(ChannelHandlerContext)
    io.netty.handler.codec.http2.Http2FrameCodecBuilder.initialHuffmanDecodeCapacity(int)
    io.netty.handler.codec.http2.Http2MultiplexCodecBuilder.initialHuffmanDecodeCapacity(int)
    io.netty.handler.codec.http2.Http2StreamChannelBootstrap.open0(ChannelHandlerContext, Promise<Http2StreamChannel>)
    should not be used directly. Use Http2StreamChannelBootstrap.open() or Http2StreamChannelBootstrap.open(Promise)
    io.netty.handler.codec.http2.HttpToHttp2ConnectionHandlerBuilder.initialHuffmanDecodeCapacity(int)
    io.netty.handler.codec.MessageAggregator.isHandlingOversizedMessage()
    This method will be removed in future releases.
    io.netty.handler.codec.mqtt.MqttConnectPayload.password()
    use MqttConnectPayload.passwordInBytes() instead
    io.netty.handler.codec.mqtt.MqttConnectPayload.willMessage()
    use MqttConnectPayload.willMessageInBytes() instead
    io.netty.handler.codec.mqtt.MqttMessageBuilders.ConnectBuilder.password(String)
    use MqttMessageBuilders.ConnectBuilder.password(byte[]) instead
    io.netty.handler.codec.mqtt.MqttMessageBuilders.ConnectBuilder.willMessage(String)
    use MqttMessageBuilders.ConnectBuilder.willMessage(byte[]) instead
    io.netty.handler.codec.mqtt.MqttMessageBuilders.PubAckBuilder.packetId(short)
    use MqttMessageBuilders.PubAckBuilder.packetId(int) instead
    io.netty.handler.codec.mqtt.MqttMessageBuilders.SubAckBuilder.packetId(short)
    use MqttMessageBuilders.SubAckBuilder.packetId(int) instead
    io.netty.handler.codec.mqtt.MqttMessageBuilders.UnsubAckBuilder.packetId(short)
    use MqttMessageBuilders.UnsubAckBuilder.packetId(int) instead
    io.netty.handler.codec.mqtt.MqttPublishVariableHeader.messageId()
    Use MqttPublishVariableHeader.packetId() instead.
    io.netty.handler.codec.mqtt.MqttTopicSubscription.topicName()
    use topicFilter
    io.netty.handler.codec.serialization.ObjectDecoderInputStream.readLine()
    Use BufferedReader.readLine() instead.
    io.netty.handler.codec.socks.SocksAddressType.fromByte(byte)
    Use SocksAddressType.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksAuthScheme.fromByte(byte)
    Use SocksAuthScheme.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksAuthStatus.fromByte(byte)
    Use SocksAuthStatus.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksCmdStatus.fromByte(byte)
    Use SocksCmdStatus.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksCmdType.fromByte(byte)
    Use SocksCmdType.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksMessage.encodeAsByteBuf(ByteBuf)
    Do not use; this method was intended for an internal use only.
    io.netty.handler.codec.socks.SocksProtocolVersion.fromByte(byte)
    Use SocksProtocolVersion.valueOf(byte) instead.
    io.netty.handler.codec.socks.SocksSubnegotiationVersion.fromByte(byte)
    Use SocksSubnegotiationVersion.valueOf(byte) instead.
    io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(File, File, String, KeyManagerFactory)
    will be removed.
    io.netty.handler.ssl.JdkSslContext.buildKeyManagerFactory(File, String, File, String, KeyManagerFactory)
    will be removed.
    io.netty.handler.ssl.OpenSsl.availableCipherSuites()
    use OpenSsl.availableOpenSslCipherSuites()
    io.netty.handler.ssl.OpenSsl.isAlpnSupported()
    use SslProvider.isAlpnSupported(SslProvider) with SslProvider.OPENSSL.
    io.netty.handler.ssl.OpenSsl.supportsHostnameValidation()
    Will be removed because hostname validation is always done by a TrustManager implementation.
    io.netty.handler.ssl.OpenSslSessionContext.setTicketKeys(byte[])
    use OpenSslSessionContext.setTicketKeys(OpenSslSessionTicketKey...).
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.context()
    this method is considered unsafe as the returned pointer may be released later. Dont use it!
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.getRejectRemoteInitiatedRenegotiation()
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.setPrivateKeyMethod(OpenSslPrivateKeyMethod)
    use SslContextBuilder.option(SslContextOption, Object) with OpenSslContextOption.PRIVATE_KEY_METHOD.
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.setRejectRemoteInitiatedRenegotiation(boolean)
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.setTicketKeys(byte[])
    use OpenSslSessionContext.setTicketKeys(byte[])
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.setUseTasks(boolean)
    use SslContextBuilder.option(SslContextOption, Object) with OpenSslContextOption.USE_TASKS.
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.sslCtxPointer()
    this method is considered unsafe as the returned pointer may be released later. Dont use it!
    io.netty.handler.ssl.ReferenceCountedOpenSslContext.stats()
    use {@link #sessionContext#stats()}
    io.netty.handler.ssl.SslContext.buildTrustManagerFactory(File, TrustManagerFactory)
    io.netty.handler.ssl.SslContext.generateKeySpec(char[], byte[])
    io.netty.handler.ssl.SslContext.newClientContext()
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, File)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, File, TrustManagerFactory)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, File, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, File, TrustManagerFactory, Iterable<String>, Iterable<String>, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(SslProvider, TrustManagerFactory)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(File)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(File, TrustManagerFactory)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(File, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(File, TrustManagerFactory, Iterable<String>, Iterable<String>, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newClientContext(TrustManagerFactory)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, File)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, File, String)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, File, String, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, File, String, Iterable<String>, Iterable<String>, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, File, String, TrustManagerFactory, Iterable<String>, Iterable<String>, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(SslProvider, File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(File, File)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(File, File, String)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(File, File, String, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.newServerContext(File, File, String, Iterable<String>, Iterable<String>, long, long)
    Replaced by SslContextBuilder
    io.netty.handler.ssl.SslContext.nextProtocols()
    Use SslContext.applicationProtocolNegotiator() instead.
    io.netty.handler.ssl.SslHandler.close()
    io.netty.handler.ssl.SslHandler.close(ChannelPromise)
    io.netty.handler.ssl.SslHandler.getCloseNotifyTimeoutMillis()
    use SslHandler.getCloseNotifyFlushTimeoutMillis()
    io.netty.handler.ssl.SslHandler.setCloseNotifyTimeout(long, TimeUnit)
    use SslHandler.setCloseNotifyFlushTimeout(long, TimeUnit)
    io.netty.handler.ssl.SslHandler.setCloseNotifyTimeoutMillis(long)
    use SslHandler.setCloseNotifyFlushTimeoutMillis(long)
    io.netty.handler.stream.ChunkedFile.readChunk(ChannelHandlerContext)
    io.netty.handler.stream.ChunkedInput.readChunk(ChannelHandlerContext)
    Use ChunkedInput.readChunk(ByteBufAllocator).

    Fetches a chunked data from the stream. Once this method returns the last chunk and thus the stream has reached at its end, any subsequent ChunkedInput.isEndOfInput() call must return true.

    io.netty.handler.stream.ChunkedNioFile.readChunk(ChannelHandlerContext)
    io.netty.handler.stream.ChunkedNioStream.readChunk(ChannelHandlerContext)
    io.netty.handler.stream.ChunkedStream.readChunk(ChannelHandlerContext)
    io.netty.handler.traffic.AbstractTrafficShapingHandler.submitWrite(ChannelHandlerContext, Object, long, ChannelPromise)
    io.netty.handler.traffic.TrafficCounter.readTimeToWait(long, long, long)
    io.netty.handler.traffic.TrafficCounter.writeTimeToWait(long, long, long)
    io.netty.resolver.dns.DnsAddressResolverGroup.newResolver(EventLoop, ChannelFactory<? extends DatagramChannel>, DnsServerAddressStreamProvider)
    Override DnsAddressResolverGroup.newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider).
    io.netty.resolver.dns.DnsNameResolverBuilder.authoritativeDnsServerCache(DnsCache)
    Use DnsNameResolverBuilder.authoritativeDnsServerCache(AuthoritativeDnsServerCache)
    io.netty.resolver.dns.DnsNameResolverBuilder.traceEnabled(boolean)
    Prefer to configure a LoggingDnsQueryLifeCycleObserverFactory instead.
    io.netty.resolver.dns.DnsServerAddresses.defaultAddresses()
    Use DefaultDnsServerAddressStreamProvider.defaultAddresses().

    Returns the DnsServerAddresses that yields the system DNS server addresses sequentially. If it failed to retrieve the list of the system DNS server addresses from the environment, it will use "8.8.8.8" and "8.8.4.4", the addresses of the Google public DNS servers.

    This method has the same effect with the following code:

     DnsServerAddresses.sequential(DnsServerAddresses.defaultAddressList());
     

    io.netty.resolver.dns.DnsServerAddresses.defaultAddressList()
    Use DefaultDnsServerAddressStreamProvider.defaultAddressList().

    Returns the list of the system DNS server addresses. If it failed to retrieve the list of the system DNS server addresses from the environment, it will return "8.8.8.8" and "8.8.4.4", the addresses of the Google public DNS servers.

    io.netty.util.Attribute.getAndRemove()
    please consider using Attribute.getAndSet(Object) (with value of null).
    io.netty.util.Attribute.remove()
    please consider using Attribute.set(Object) (with value of null).
    io.netty.util.CharsetUtil.getDecoder(Charset)
    Use CharsetUtil.decoder(Charset).
    io.netty.util.CharsetUtil.getEncoder(Charset)
    Use CharsetUtil.encoder(Charset).
    io.netty.util.concurrent.AbstractEventExecutor.shutdown()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or AbstractEventExecutor.shutdownGracefully() instead.
    io.netty.util.concurrent.AbstractEventExecutor.shutdownNow()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or AbstractEventExecutor.shutdownGracefully() instead.
    io.netty.util.concurrent.AbstractEventExecutorGroup.shutdown()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or AbstractEventExecutorGroup.shutdownGracefully() instead.
    io.netty.util.concurrent.AbstractEventExecutorGroup.shutdownNow()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or AbstractEventExecutorGroup.shutdownGracefully() instead.
    io.netty.util.concurrent.AbstractScheduledEventExecutor.nanoTime()
    Use the non-static AbstractScheduledEventExecutor.getCurrentTimeNanos() instead.
    io.netty.util.concurrent.AbstractScheduledEventExecutor.validateScheduled(long, TimeUnit)
    will be removed in the future.
    io.netty.util.concurrent.EventExecutorGroup.shutdown()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or EventExecutorGroup.shutdownGracefully() instead.
    io.netty.util.concurrent.EventExecutorGroup.shutdownNow()
    EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) or EventExecutorGroup.shutdownGracefully() instead.
    io.netty.util.concurrent.GlobalEventExecutor.shutdown()
    io.netty.util.concurrent.ImmediateEventExecutor.shutdown()
    io.netty.util.concurrent.MultithreadEventExecutorGroup.shutdown()
    io.netty.util.concurrent.PromiseCombiner.add(Promise)
    Replaced by PromiseCombiner.add(Future).
    io.netty.util.concurrent.PromiseCombiner.addAll(Promise...)
    Replaced by PromiseCombiner.addAll(Future[])
    io.netty.util.concurrent.SingleThreadEventExecutor.newTaskQueue()
    Please use and override SingleThreadEventExecutor.newTaskQueue(int).
    io.netty.util.concurrent.SingleThreadEventExecutor.shutdown()
    io.netty.util.ConstantPool.nextId()
    io.netty.util.DomainNameMapping.add(String, V)
    use DomainNameMappingBuilder to create and fill the mapping instead
    io.netty.util.DomainNameMappingBuilder.ImmutableDomainNameMapping.add(String, V)
    io.netty.util.internal.InternalThreadLocalMap.counterHashCode()
    io.netty.util.internal.InternalThreadLocalMap.setCounterHashCode(IntegerHolder)
    io.netty.util.Recycler.recycle(T, Recycler.Handle<T>)
    use ObjectPool.Handle.recycle(Object).
    io.netty.util.ReferenceCountUtil.releaseLater(T)
    this may introduce a lot of memory usage so it is generally preferable to manually release objects.
    io.netty.util.ReferenceCountUtil.releaseLater(T, int)
    this may introduce a lot of memory usage so it is generally preferable to manually release objects.
    io.netty.util.ResourceLeakDetector.open(T)
    use ResourceLeakDetector.track(Object)
    io.netty.util.ResourceLeakDetector.reportInstancesLeak(String)
    This method will no longer be invoked by ResourceLeakDetector.
    io.netty.util.ResourceLeakDetector.setEnabled(boolean)
    Use ResourceLeakDetector.setLevel(Level) instead.
    io.netty.util.ResourceLeakDetectorFactory.newResourceLeakDetector(Class<T>, int, long)
    Use ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int) instead.

    Returns a new instance of a ResourceLeakDetector with the given resource class.

  • Deprecated Constructors
    Constructor
    Description
    io.netty.buffer.PooledByteBufAllocator(boolean, int, int, int, int)
    use PooledByteBufAllocator(boolean, int, int, int, int, int, int, boolean)
    io.netty.buffer.PooledByteBufAllocator(boolean, int, int, int, int, int, int, int)
    use PooledByteBufAllocator(boolean, int, int, int, int, int, int, boolean)
    io.netty.buffer.PooledByteBufAllocator(boolean, int, int, int, int, int, int, int, boolean)
    use PooledByteBufAllocator(boolean, int, int, int, int, int, int, boolean)
    io.netty.buffer.PooledByteBufAllocator(boolean, int, int, int, int, int, int, int, boolean, int)
    use PooledByteBufAllocator(boolean, int, int, int, int, int, int, boolean, int)
    io.netty.channel.ChannelOption(String)
    io.netty.channel.epoll.EpollEventLoopGroup(int, ThreadFactory, int)
    Use EpollEventLoopGroup(int) or EpollEventLoopGroup(int, ThreadFactory)
    io.netty.channel.epoll.EpollEventLoopGroup(int, ThreadFactory, int, SelectStrategyFactory)
    Use EpollEventLoopGroup(int), EpollEventLoopGroup(int, ThreadFactory), or EpollEventLoopGroup(int, SelectStrategyFactory)
    io.netty.channel.kqueue.KQueueEventLoopGroup(int, ThreadFactory, int)
    Use KQueueEventLoopGroup(int) or KQueueEventLoopGroup(int, ThreadFactory)
    io.netty.channel.kqueue.KQueueEventLoopGroup(int, ThreadFactory, int, SelectStrategyFactory)
    Use KQueueEventLoopGroup(int), KQueueEventLoopGroup(int, ThreadFactory), or KQueueEventLoopGroup(int, SelectStrategyFactory)
    io.netty.channel.socket.oio.DefaultOioServerSocketChannelConfig(ServerSocketChannel, ServerSocket)
    io.netty.channel.socket.oio.DefaultOioSocketChannelConfig(SocketChannel, Socket)
    io.netty.handler.codec.http.CombinedHttpHeaders(boolean)
    Prefer instead to configuring a HttpHeadersFactory by calling withCombiningHeaders(true) on DefaultHttpHeadersFactory.headersFactory().
    io.netty.handler.codec.http.cors.CorsConfig.Builder()
    Use CorsConfigBuilder instead.
    io.netty.handler.codec.http.cors.CorsConfig.Builder(String...)
    Use CorsConfigBuilder instead.
    io.netty.handler.codec.http.DefaultFullHttpRequest(HttpVersion, HttpMethod, String, boolean)
    Use the DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, boolean)
    Use the DefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, boolean)
    Prefer the DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, boolean, boolean)
    Prefer the DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, boolean)
    Prefer the DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, boolean, boolean)
    Prefer the DefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultHttpHeaders(boolean)
    Prefer using the DefaultHttpHeaders() constructor instead, to always have validation enabled.
    io.netty.handler.codec.http.DefaultHttpMessage(HttpVersion, boolean, boolean)
    Use the DefaultHttpMessage(HttpVersion, HttpHeadersFactory) constructor instead, ideally using the DefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.
    io.netty.handler.codec.http.DefaultHttpRequest(HttpVersion, HttpMethod, String, boolean)
    Prefer the DefaultHttpRequest(HttpVersion, HttpMethod, String) constructor instead, to always have header validation enabled.
    io.netty.handler.codec.http.DefaultHttpResponse(HttpVersion, HttpResponseStatus, boolean)
    Use the DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultHttpResponse(HttpVersion, HttpResponseStatus, boolean, boolean)
    Use the DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.http.DefaultLastHttpContent(ByteBuf, boolean)
    Prefer the DefaultLastHttpContent(ByteBuf) constructor instead, to always have header validation enabled.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean)
    Prefer the HttpClientCodec(int, int, int, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean, boolean)
    Prefer the HttpClientCodec(HttpDecoderConfig, boolean, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean, int)
    Prefer the HttpClientCodec(HttpDecoderConfig, boolean, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean, int, boolean)
    Prefer the HttpClientCodec(HttpDecoderConfig, boolean, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean, int, boolean, boolean)
    Prefer the HttpClientCodec(HttpDecoderConfig, boolean, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpClientCodec(int, int, int, boolean, boolean, int, boolean, boolean, boolean)
    Prefer the HttpClientCodec(HttpDecoderConfig, boolean, boolean) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpContentCompressor(int)
    io.netty.handler.codec.http.HttpContentCompressor(int, int, int)
    io.netty.handler.codec.http.HttpContentCompressor(int, int, int, int)
    io.netty.handler.codec.http.HttpObjectDecoder(int, int, int, boolean)
    Use HttpObjectDecoder(HttpDecoderConfig) instead.
    io.netty.handler.codec.http.HttpObjectDecoder(int, int, int, boolean, boolean)
    Use HttpObjectDecoder(HttpDecoderConfig) instead.
    io.netty.handler.codec.http.HttpObjectDecoder(int, int, int, boolean, boolean, int)
    Use HttpObjectDecoder(HttpDecoderConfig) instead.
    io.netty.handler.codec.http.HttpObjectDecoder(int, int, int, boolean, boolean, int, boolean)
    Use HttpObjectDecoder(HttpDecoderConfig) instead.
    io.netty.handler.codec.http.HttpObjectDecoder(int, int, int, boolean, boolean, int, boolean, boolean)
    Use HttpObjectDecoder(HttpDecoderConfig) instead.
    io.netty.handler.codec.http.HttpRequestDecoder(int, int, int, boolean)
    Prefer the HttpRequestDecoder(HttpDecoderConfig) constructor, to always have header validation enabled.
    io.netty.handler.codec.http.HttpRequestDecoder(int, int, int, boolean, int)
    Prefer the HttpRequestDecoder(HttpDecoderConfig) constructor, to always have header validation enabled.
    io.netty.handler.codec.http.HttpRequestDecoder(int, int, int, boolean, int, boolean)
    Prefer the HttpRequestDecoder(HttpDecoderConfig) constructor, to always have header validation enabled.
    io.netty.handler.codec.http.HttpRequestDecoder(int, int, int, boolean, int, boolean, boolean)
    Prefer the HttpRequestDecoder(HttpDecoderConfig) constructor, to always have header validation enabled.
    io.netty.handler.codec.http.HttpResponseDecoder(int, int, int, boolean)
    Prefer the HttpResponseDecoder(HttpDecoderConfig) constructor.
    io.netty.handler.codec.http.HttpResponseDecoder(int, int, int, boolean, int)
    Prefer the HttpResponseDecoder(HttpDecoderConfig) constructor.
    io.netty.handler.codec.http.HttpResponseDecoder(int, int, int, boolean, int, boolean)
    Prefer the HttpResponseDecoder(HttpDecoderConfig) constructor.
    io.netty.handler.codec.http.HttpResponseDecoder(int, int, int, boolean, int, boolean, boolean)
    Prefer the HttpResponseDecoder(HttpDecoderConfig) constructor.
    io.netty.handler.codec.http.HttpServerCodec(int, int, int, boolean)
    Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpServerCodec(int, int, int, boolean, int)
    Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpServerCodec(int, int, int, boolean, int, boolean)
    Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
    io.netty.handler.codec.http.HttpServerCodec(int, int, int, boolean, int, boolean, boolean)
    Prefer the HttpServerCodec(HttpDecoderConfig) constructor, to always enable header validation.
    io.netty.handler.codec.http2.CompressorHttp2ConnectionEncoder(Http2ConnectionEncoder, int, int, int)
    io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder(Http2Connection, Http2ConnectionEncoder, Http2FrameReader, Http2PromisedRequestVerifier, boolean, boolean)
    io.netty.handler.codec.mqtt.MqttConnectPayload(String, String, String, String, String)
    use MqttConnectPayload(String, MqttProperties, String, byte[], String, byte[]) instead
    io.netty.handler.codec.rtsp.RtspDecoder(int, int, int, boolean)
    Use the RtspDecoder(HttpDecoderConfig) constructor instead, or the RtspDecoder(int, int, int) to always enable header validation.
    io.netty.handler.codec.spdy.SpdyHttpCodec(SpdyVersion, int, boolean)
    io.netty.handler.codec.spdy.SpdyHttpDecoder(SpdyVersion, int, boolean)
    Use the SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.codec.spdy.SpdyHttpDecoder(SpdyVersion, int, Map<Integer, FullHttpMessage>, boolean)
    Use the SpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory) constructor instead.
    io.netty.handler.pcap.PcapWriteHandler(OutputStream)
    Use PcapWriteHandler.Builder instead.
    io.netty.handler.pcap.PcapWriteHandler(OutputStream, boolean, boolean)
    Use PcapWriteHandler.Builder instead.
    io.netty.handler.ssl.JdkSslClientContext()
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, JdkApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, JdkApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(File, TrustManagerFactory, Iterable<String>, Iterable<String>, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslClientContext(TrustManagerFactory)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslContext(SSLContext, boolean, ClientAuth)
    Use JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter, ApplicationProtocolConfig, ClientAuth, String[], boolean)
    io.netty.handler.ssl.JdkSslContext(SSLContext, boolean, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, ClientAuth)
    Use JdkSslContext(SSLContext, boolean, Iterable, CipherSuiteFilter, ApplicationProtocolConfig, ClientAuth, String[], boolean)
    io.netty.handler.ssl.JdkSslServerContext(File, File)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, File, String)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, File, String, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, File, String, Iterable<String>, CipherSuiteFilter, JdkApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, File, String, Iterable<String>, Iterable<String>, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.JdkSslServerContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, JdkApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext()
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(File)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(File, TrustManagerFactory)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(File, TrustManagerFactory, Iterable<String>, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(File, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslClientContext(TrustManagerFactory)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, Iterable<String>, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, Iterable<String>, Iterable<String>, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, TrustManagerFactory, Iterable<String>, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, TrustManagerFactory, Iterable<String>, CipherSuiteFilter, OpenSslApplicationProtocolNegotiator, long, long)
    use SslContextBuilder}
    io.netty.handler.ssl.OpenSslServerContext(File, File, String, TrustManagerFactory, Iterable<String>, OpenSslApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, ApplicationProtocolConfig, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.OpenSslServerContext(File, TrustManagerFactory, File, File, String, KeyManagerFactory, Iterable<String>, CipherSuiteFilter, OpenSslApplicationProtocolNegotiator, long, long)
    use SslContextBuilder
    io.netty.handler.ssl.util.FingerprintTrustManagerFactory(byte[]...)
    This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory.builder(String) method.
    io.netty.handler.ssl.util.FingerprintTrustManagerFactory(Iterable<String>)
    This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory.builder(String) method.
    io.netty.handler.ssl.util.FingerprintTrustManagerFactory(String...)
    This deprecated constructor uses SHA-1 that is considered insecure. It is recommended to specify a stronger hash algorithm, such as SHA-256, by calling FingerprintTrustManagerFactory.builder(String) method.
    io.netty.handler.stream.ChunkedWriteHandler(int)
    use ChunkedWriteHandler()
    io.netty.resolver.dns.DnsNameResolver(EventLoop, ChannelFactory<? extends DatagramChannel>, DnsCache, AuthoritativeDnsServerCache, DnsQueryLifecycleObserverFactory, long, ResolvedAddressTypes, boolean, int, boolean, int, boolean, HostsFileEntriesResolver, DnsServerAddressStreamProvider, String[], int, boolean)
    Use DnsNameResolverBuilder.
    io.netty.resolver.dns.DnsNameResolver(EventLoop, ChannelFactory<? extends DatagramChannel>, DnsCache, DnsCache, DnsQueryLifecycleObserverFactory, long, ResolvedAddressTypes, boolean, int, boolean, int, boolean, HostsFileEntriesResolver, DnsServerAddressStreamProvider, String[], int, boolean)
    Use DnsNameResolverBuilder.
    io.netty.util.concurrent.PromiseCombiner()
    io.netty.util.DomainNameMapping(int, V)
    use DomainNameMappingBuilder to create and fill the mapping instead
    io.netty.util.DomainNameMapping(V)
    use DomainNameMappingBuilder to create and fill the mapping instead
    io.netty.util.internal.logging.CommonsLoggerFactory()
    Use CommonsLoggerFactory.INSTANCE instead.
    io.netty.util.internal.logging.JdkLoggerFactory()
    Use JdkLoggerFactory.INSTANCE instead.
    io.netty.util.internal.logging.Log4J2LoggerFactory()
    Use Log4J2LoggerFactory.INSTANCE instead.
    io.netty.util.internal.logging.Log4JLoggerFactory()
    Use Log4JLoggerFactory.INSTANCE instead.
    io.netty.util.internal.logging.Slf4JLoggerFactory()
    Use Slf4JLoggerFactory.INSTANCE instead.
    io.netty.util.Recycler(int, int)
    Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).
    io.netty.util.Recycler(int, int, int, int)
    Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).
    io.netty.util.Recycler(int, int, int, int, int)
    Use one of the following instead: Recycler(), Recycler(int), Recycler(int, int, int).
    io.netty.util.ResourceLeakDetector(Class<?>)
    use ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int, long).
    io.netty.util.ResourceLeakDetector(Class<?>, int, long)
    Use ResourceLeakDetector(Class, int).

    This should not be used directly by users of ResourceLeakDetector. Please use ResourceLeakDetectorFactory.newResourceLeakDetector(Class) or ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int, long)

    io.netty.util.ResourceLeakDetector(String)
    use ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int, long).
    io.netty.util.ResourceLeakDetector(String, int, long)
    use ResourceLeakDetectorFactory.newResourceLeakDetector(Class, int, long).

  • Deprecated Enum Constants
    Enum Constant
    Description
    io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler.ServerHandshakeStateEvent.HANDSHAKE_COMPLETE
    in favor of WebSocketServerProtocolHandler.HandshakeComplete class, it provides extra information about the handshake