Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionNo longer neededAccess the builder from the visitorNo longer neededNot neededNo longer usedNo longer usedNo longer usedNo longer neededNo longer neededNo longer usedNo longer usedNo longer usedNo longer usedUse the typed member of the
Bean
annotation insteadUseConfigurableBeanContext
insteadReplaced byAbstractArgumentBinder
replaced withArgumentBinderRegistry.addArgumentBinder(ArgumentBinder)
replaced withArgumentBinderRegistry.findArgumentBinder(Argument)
Inline methodUse builder insteadUse builder insteadReplaced withMessageBodyHandlerRegistry
.Replaced byHttpConverterRegistrar(BeanProvider)
.Not needed anymoreNot needed anymoreIn order to make future optimizations possible, standard attributes should be accessed through their static method accessors (such as those inBasicHttpAttributes
) instead of directly throughAttributeHolder
.Not used anymorePlease use the accessors in RouteAttributesPlease use accessors in ClientAttributes insteadUnusedUse accessors inHttpMessage
insteadNo replacement. Use your own attribute if necessaryPlease use the accessors in RouteAttributesPlease use the accessors in RouteAttributesUseHttpRequest.getCertificate()
insteadNon-functional, replaced byNettyThreadFactory.getDefaultEventLoopThreads()
.Go throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadNot used anymoreReplaced with message body writers / readers APIuseDefaultErrorResponseProcessor
insteadUnused nowWill be removed after 4.3.0Will be removed after 4.3.0Will be removed after 4.3.0Will be removed after 4.3.0replaced withClassElement.withTypeArguments(Collection)
for consistent API.Replaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced with message body writers / readers APICloudFoundry support should be added manuallyCloudFoundry support should be added manuallyReplaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced withFilterRoute.match(HttpMethod, String)
.Behavior moved up intoHyphenatedUriNamingStrategy
UYseRouteInfo.getRequestBodyType()
insteadUseRouteInfo.getResponseBodyType()
insteadNo longer used
-
Deprecated InterfacesInterfaceDescriptionUse
ConfigurableBeanContext
insteadReplaced withMessageBodyHandler
Replaced withMessageBodyHandlerRegistry
.Use NettyClientCustomizer or NettyServerCustomizer instead.Use theMessageBodyReader
API insteadUnused now
-
Deprecated ClassesClassDescriptionNo longer neededNo longer neededNo longer usedNo longer usedNo longer usedReplaced by
AbstractArgumentBinder
Replaced withMessageBodyHandlerRegistry
.Replaced with message body writers / readers APIuseDefaultErrorResponseProcessor
insteadReplaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced with message body writers / readers APICloudFoundry support should be added manuallyCloudFoundry support should be added manuallyReplaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced with message body writers / readers APIReplaced with message body writers / readers APIBehavior moved up intoHyphenatedUriNamingStrategy
Moved toRouteAttributes
-
Deprecated Enum ClassesEnum ClassDescriptionIn order to make future optimizations possible, standard attributes should be accessed through their static method accessors (such as those in
BasicHttpAttributes
) instead of directly throughAttributeHolder
.
-
Deprecated Record ClassesRecord ClassDescription
-
Deprecated Annotation Interfaces
-
Deprecated FieldsFieldDescriptionPlease use
ServerRequestContext.currentRequest(ContextView)
to look up the request in a reactor context.Non-functional, replaced byNettyThreadFactory.getDefaultEventLoopThreads()
.Unused now, please follow RFC 6266
-
Deprecated MethodsMethodDescriptionAccess the builder from the visitorNo longer usedNo longer usedNo longer usedNo longer useddon't need to have this methodset logEnabled value by constructorreplaced with
ArgumentBinderRegistry.addArgumentBinder(ArgumentBinder)
replaced withArgumentBinderRegistry.findArgumentBinder(Argument)
This method has no effect forImperativeExecutionFlow
, it makes no sense to use itInline methodThis method is unnecessary forAvailableByteBody
, it does nothing.This method is unnecessary forAvailableByteBody
. UseAvailableByteBody.length()
directly.This method is unnecessary forAvailableByteBody
. UseAvailableByteBody.split()
directly.This method is unnecessary forAvailableByteBody
. UseAvailableByteBody.toByteArray()
directly.This method is unnecessary forAvailableByteBody
. UseAvailableByteBody.toByteBuffer()
directly.This method is unnecessary forAvailableByteBody
, it does nothing.Please pass aByteBodyFactory
instead (InputStreamByteBody.create(InputStream, OptionalLong, Executor, ByteBodyFactory)
)There are now separate settings for HTTP and HTTPS connections. To configure HTTP connections (e.g. for h2c), useClient.plaintextMode()
. To configure ALPN, setClient.alpnModes()
.There are now separate settings for HTTP and HTTPS connections. To configure HTTP connections (e.g. for h2c), useHttpClientConfiguration.plaintextMode
. To configure ALPN, setHttpClientConfiguration.alpnModes
.There are now separate settings for HTTP and HTTPS connections. To configure HTTP connections (e.g. for h2c), useHttpClientConfiguration.plaintextMode
. To configure ALPN, setHttpClientConfiguration.alpnModes
.UseFixedLoadBalancer.getUri()
insteadUseLoadBalancer.fixed(URI)
insteadUse body handlers insteadUse builder insteadUse builder insteadNot needed anymoreNot needed anymoreUse NettyClientCustomizer or NettyServerCustomizer instead.Use NettyClientCustomizer or NettyServerCustomizer instead.Use NettyClientCustomizer or NettyServerCustomizer instead.Go throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestWithoutBody()
andNettyHttpRequestBuilder.byteBodyDirect()
insteadGo throughNettyHttpRequestBuilder.toHttpRequestDirect()
andNettyHttpRequestBuilder.toHttpRequestWithoutBody()
insteadUnusedThis setting does nothingThis setting does nothingTheSETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec.TheSETTINGS_ENABLE_PUSH
setting makes no sense when sent by the server, and clients must reject any setting exceptfalse
(the default) according to the spec. Netty will refuse to write this setting altogether. To prevent this, this setter now does nothing and will be removed in a future release.Does not work for unix or embedded channels. Please implement and useLogElement.onRequestHeaders(ConnectionMetadata, String, HttpHeaders, String, String)
instead.Will be removed after 4.3.0Will be removed after 4.3.0Will be removed after 4.3.0Please usemicronaut.server.ssl.port
instead (ServerSslConfiguration.setPort(int)
).Please usemicronaut.server.ssl.build-self-signed
instead (SslConfiguration.buildSelfSigned()
).Please usemicronaut.server.ssl.port
instead (ServerSslConfiguration.setPort(int)
).replaced withClassElement.withTypeArguments(Collection)
for consistent API.no longer usedVisiting a file should supply the originating elements. UseClassWriterOutputVisitor.visitMetaInfFile(String, Element...)
insteadReplaced withFilterRoute.match(HttpMethod, String)
.UYseRouteInfo.getRequestBodyType()
insteadUseRouteInfo.getResponseBodyType()
insteadNo longer usedUseWebSocketClient.create(URI)
instead
-
Deprecated ConstructorsConstructorDescriptionNot neededNo longer neededNo longer neededUse
FixedLoadBalancer(URI)
insteadPlease go through theDefaultHttpClient.builder()
instead.Please go through theDefaultHttpClient.builder()
instead. If you need access to properties that are not public in the builder, make them public in core and document their usage.Please go through theDefaultHttpClient.builder()
instead. If you need access to properties that are not public in the builder, make them public in core and document their usage.Please go through theDefaultHttpClient.builder()
instead. If you need access to properties that are not public in the builder, make them public in core and document their usage.Please go through theDefaultHttpClient.builder()
instead.Please go through theDefaultHttpClient.builder()
instead.Please go through theDefaultHttpClient.builder()
instead.Replaced byHttpConverterRegistrar(BeanProvider)
.Pass the config instead, throughNettyThreadFactory(NettyGlobalConfiguration)
Not used anymoreWill be removed after 4.3.0
-
Deprecated Enum ConstantsEnum ConstantDescriptionNot used anymorePlease use the accessors in RouteAttributesPlease use accessors in ClientAttributes insteadUnusedUse accessors in
HttpMessage
insteadNo replacement. Use your own attribute if necessaryPlease use the accessors in RouteAttributesPlease use the accessors in RouteAttributesUseHttpRequest.getCertificate()
instead
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionThere are now separate settings for HTTP and HTTPS connections. To configure HTTP connections (e.g. for h2c), use
Client.plaintextMode()
. To configure ALPN, setClient.alpnModes()
.