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

Deprecated API

Contents

  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Interfaces
    Interface
    Description
    io.netty.handler.codec.http.Cookie
    Use Cookie instead.
  • Deprecated Classes
    Class
    Description
    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.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.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.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
  • Deprecated Fields
    Field
    Description
    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
  • Deprecated Methods
    Method
    Description
    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.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.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)
  • Deprecated Constructors
    Constructor
    Description
    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.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.
  • 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

Copyright © 2008–2023 The Netty Project. All rights reserved.