-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionUse
ClientCookieDecoderorServerCookieDecoderinstead. Decodes an HTTP header value intoCookies. This decoder can decode the HTTP cookie version 0, 1, and 2.HttpRequestreq = ...; String value = req.getHeader("Cookie"); Set<Cookie> cookies =CookieDecoder.decode(value);UseCorsConfigBuilderinstead.Removed without alternatives.UseDefaultCookieinstead.UseDateFormatterinsteadUseHttpHeaderNamesinstead. Standard HTTP header names.UseHttpHeaderValuesinstead. Standard HTTP header values.UseServerCookieEncoderinsteadUseRtspHeaderNamesorRtspHeaderValuesinstead. Standard RTSP header names and values.UseRtspHeaderNamesinstead. Standard RTSP header names.UseRtspHeaderValuesinstead. Standard RTSP header values.UseRtspDecoderinstead.UseRtspEncoderinstead.UseRtspDecoderdirectly insteadUseRtspEncoderdirectly insteadUseRtspDecoderdirectly insteadUseRtspEncoderdirectly instead
-
Deprecated FieldsFieldDescriptionuse
HttpHeaderNames.CONNECTION"keep-alive"useHttpHeaderNames.CONNECTION"proxy-connection"UseEmptyHttpHeaders.INSTANCE.The instance is instantiated here to break the cyclic static initialization between
EmptyHttpHeadersandHttpHeaders. The issue is that if someone accessesEmptyHttpHeaders.INSTANCEbeforeHttpHeaders.EMPTY_HEADERSthenHttpHeaders.EMPTY_HEADERSwill benull.
-
Deprecated MethodsMethodDescriptionNot part of RFC6265Not part of RFC6265CookieUtil is package private, will be removed once old Cookie API is droppedUse
Cookie.comment()instead.UseCookie.commentUrl()instead.UseCookie.domain()instead.UseCookie.maxAge()instead.UseCookie.name()instead.UseCookie.path()instead.UseCookie.ports()instead.UseCookie.value()instead.UseCookie.version()instead.Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265Not part of RFC6265UseCorsConfigBuilder.allowCredentials()instead.UseCorsConfigBuilder.allowedRequestHeaders(String...)instead.UseCorsConfigBuilder.allowNullOrigin()instead.UseCorsConfigBuilder.build()instead.UseCorsConfigBuilder.disable()instead.UseCorsConfigBuilder.exposeHeaders(String...)instead.UseCorsConfigBuilder.maxAge(long)instead.UseCorsConfigBuilder.noPreflightResponseHeaders()instead.io.netty.handler.codec.http.cors.CorsConfig.Builder.preflightResponseHeader(CharSequence, Object...) UseCorsConfigBuilder.shortCircuit()instead.UseCorsConfig.isShortCircuit()instead.UseCorsConfigBuilder.forAnyOrigin()instead.UseCorsConfigBuilder.forOrigin(String)instead.UseCorsConfigBuilder.forOrigins(String...)instead.UseHttpHeaders.add(CharSequence, Object)instead. Adds a new date header with the specified name and value. The specified value is formatted as defined in RFC2616UseHttpHeaders.add(CharSequence, Object)instead.UseHttpHeaders.add(CharSequence, Object)instead. Adds a new header with the specified name and value. If the specified value is not aString, it is converted into aStringbyObject.toString(), except forDateandCalendarwhich are formatted to the date format defined in RFC2616.UseHttpHeaders.add(CharSequence, Object)instead.UseHttpHeaders.addInt(CharSequence, int)instead. Adds a new integer header with the specified name and value.UseHttpHeaders.add(CharSequence, Iterable)instead.UseHttpHeaders.clear()instead. Removes all headers from the specified message.UseAsciiString.contentEqualsIgnoreCase(CharSequence, CharSequence)instead.UseHttpUtil.getContentLength(HttpMessage)instead. Returns the length of the content. Please note that this value is not retrieved fromByteBufHolder.content()but from the"Content-Length"header, and thus they are independent from each other.UseHttpUtil.getContentLength(HttpMessage, long)instead. Returns the length of the content. Please note that this value is not retrieved fromByteBufHolder.content()but from the"Content-Length"header, and thus they are independent from each other.UseHttpHeaders.getTimeMillis(CharSequence)instead. Returns the value of the"Date"header.UseHttpHeaders.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, thedefaultValueis returned.UseHttpHeaders.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.UseHttpHeaders.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.UseHttpHeaders.getTimeMillis(CharSequence)instead.UseHttpHeaders.getTimeMillis(CharSequence, long)instead.UseHttpHeaders.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.UseHttpHeaders.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.UseHttpHeaders.get(CharSequence)instead.UseHttpHeaders.get(CharSequence, String)instead.UseHttpHeaders.get(CharSequence)instead. Returns the value of the"Host"header.UseHttpHeaders.get(CharSequence, String)instead. Returns the value of the"Host"header. If there is no such header, thedefaultValueis returned.UseHttpHeaders.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.UseHttpHeaders.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.UseHttpHeaders.getInt(CharSequence)instead.UseHttpHeaders.getInt(CharSequence, int)instead.UseHttpUtil.is100ContinueExpected(HttpMessage)instead. Returnstrueif and only if the specified message contains the"Expect: 100-continue"header.UseHttpUtil.isContentLengthSet(HttpMessage)instead.UseHttpUtil.isKeepAlive(HttpMessage)instead. Returnstrueif 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 ofHttpVersion.isKeepAliveDefault().UseHttpUtil.isTransferEncodingChunked(HttpMessage)instead. Checks to see if the transfer encoding in a specifiedHttpMessageis chunkedIt is preferred to useHttpHeaders.iteratorCharSequence()unless you needString. IfStringis required then useHttpHeaders.iteratorAsString().UseAsciiStringinstead.Create a new
CharSequencewhich is optimized for reuse asHttpHeadersname or value. So if you have a Header name or value that you want to reuse you should make use of this.UseHttpHeaders.remove(CharSequence)instead. Removes the header with the specified name.UseHttpHeaders.remove(CharSequence)instead.UseHttpUtil.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.UseHttpUtil.set100ContinueExpected(HttpMessage, boolean)instead. Sets or removes the"Expect: 100-continue"header to / from the specified message. Ifsetistrue, the"Expect: 100-continue"header is set and all other previous"Expect"headers are removed. Otherwise, all"Expect"headers are removed completely.UseHttpUtil.setContentLength(HttpMessage, long)instead.UseHttpHeaders.set(CharSequence, Object)instead. Sets the"Date"header.UseHttpHeaders.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 RFC2616UseHttpHeaders.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 RFC2616UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.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); }UseHttpHeaders.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 aString, it is converted into aStringbyObject.toString(), except forDateandCalendarwhich are formatted to the date format defined in RFC2616.UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.set(CharSequence, Object)instead. Sets the"Host"header.UseHttpHeaders.set(CharSequence, Object)instead.UseHttpHeaders.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.UseHttpHeaders.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.UseHttpHeaders.setInt(CharSequence, int)instead.UseHttpHeaders.set(CharSequence, Iterable)instead.UseHttpUtil.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 byHttpVersion.isKeepAliveDefault().- If the connection is kept alive by default:
- set to
"close"ifkeepAliveisfalse. - remove otherwise.
- set to
- If the connection is closed by default:
- set to
"keep-alive"ifkeepAliveistrue. - remove otherwise.
- set to
UseHttpMessage.protocolVersion()instead.UseDecoderResultProvider.decoderResult()instead.UseHttpRequest.method()instead.UseHttpRequest.uri()instead.UseHttpResponse.status()instead.UseHttpDataFactory.cleanAllHttpData()instead.UseHttpDataFactory.cleanRequestHttpData(HttpRequest)instead.UseWebSocketChunkedInput.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 subsequentWebSocketChunkedInput.isEndOfInput()call must returntrue. - If the connection is kept alive by default:
-
Deprecated ConstructorsConstructorDescriptionPrefer instead to configuring a
HttpHeadersFactoryby callingwithCombiningHeaders(true)onDefaultHttpHeadersFactory.headersFactory().UseCorsConfigBuilderinstead.UseCorsConfigBuilderinstead.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Use theDefaultFullHttpRequest(HttpVersion, HttpMethod, String, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer theDefaultFullHttpResponse(HttpVersion, HttpResponseStatus, ByteBuf, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Prefer using theDefaultHttpHeaders()constructor instead, to always have validation enabled.Use theDefaultHttpMessage(HttpVersion, HttpHeadersFactory)constructor instead, ideally using theDefaultHttpHeadersFactory.headersFactory(), or a factory that otherwise has validation enabled.Prefer theDefaultHttpRequest(HttpVersion, HttpMethod, String)constructor instead, to always have header validation enabled.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)constructor instead.Use theDefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory)constructor instead.Prefer theDefaultLastHttpContent(ByteBuf)constructor instead, to always have header validation enabled.Prefer theHttpClientCodec(int, int, int, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.Prefer theHttpClientCodec(HttpDecoderConfig, boolean, boolean)constructor, to always enable header validation.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.UseHttpObjectDecoder(HttpDecoderConfig)instead.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpRequestDecoder(HttpDecoderConfig)constructor, to always have header validation enabled.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpResponseDecoder(HttpDecoderConfig)constructor.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Prefer theHttpServerCodec(HttpDecoderConfig)constructor, to always enable header validation.Use theRtspDecoder(HttpDecoderConfig)constructor instead, or theRtspDecoder(int, int, int)to always enable header validation.Use theSpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)constructor instead.Use theSpdyHttpDecoder(SpdyVersion, int, Map, HttpHeadersFactory, HttpHeadersFactory)constructor instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionin favor of
WebSocketServerProtocolHandler.HandshakeCompleteclass, it provides extra information about the handshake
Cookieinstead.