Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionwill be removed in 4.x version.Please use
IoMulti.outputStreamMultiBuilder()please useIoMulti.multiFromStream(java.io.InputStream)Please useIoMulti.outputStreamMulti()please useOutputStreamMultiinsteadThis annotation is slated for removal.This class is slated for removal.This class is slated for removal.An equivalent class now exists in Narayana itself.An equivalent class now exists in Narayana itself.This class is slated for removal. It makes incorrect assumptions about threading in a JTA environment. Specifically, this class' implementation incorrectly assumes that theJtaDataSource.afterCompletion(int)method will be invoked on the same thread as the governing transaction, which is not necessarily the case, especially in the case of asynchronous rollbacks. As a result,Connections acquired by instances of this class may not be closed properly.This method is slated for removal with no replacement.This class is slated for removal with no replacement.UseMessageBodyReaderContext.create(MediaContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.ReadOnlyHeaders, java.util.Optional)instead, passingReadOnlyHeadersinstead ofReadOnlyParameters.UseMessageBodyReaderContext.create(MessageBodyReaderContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.ReadOnlyHeaders, java.util.Optional)instead, passingReadOnlyHeadersinstead ofReadOnlyParameters.UseMessageBodyWriterContext.create(io.helidon.common.http.Headers)instead, passingHeadersinstead ofParameters.UseMessageBodyWriterContext.create(MediaContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)instead, passingHeadersinstead ofParameters.Use (@linkMessageBodyWriterContext.create(MessageBodyWriterContext, io.helidon.common.http.Headers)instead passingHeadersinstead ofParameters.UseMessageBodyWriterContext.create(MessageBodyWriterContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)instead, passingHeadersinstead ofParameters.Will be removed. Please useIoMulti.multiFromByteChannel(java.nio.channels.ReadableByteChannel)insteadsince 3.0.3, useJakartaSession.unwrap()instead.UseKeyPerformanceIndicatorMetricsSettingsinstead.UseMetricsSupport.builder()instead.this class will not be public in future versions of HelidonThis class will no longer be public in future versionsuseEndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as wellImplementMessagingChannelProcessoras a bean instead, which can peak to any messaging channel.ImplementMessagingChannelProcessoras a bean instead, which can peak to any messaging channel.useEndpointConfig.PROPERTY_OUTBOUND_SECRETinstead, the value will change in 4.x as welluseEndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as welluseIdcsMtRoleMapperRxProviderinsteaduseIdcsRoleMapperRxProviderinsteaduseIdcsRoleMapperRxProviderBaseinsteaduseEndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as welluseOidcConfig.tokenCookieHandler()insteadplease useOidcConfig.tokenCookieHandler()insteaduseOidcCookieHandlerinstead, this method will no longer be avilableUseOidcConfig.generalWebClient()insteadPlease useOidcConfig.appWebClient()andOidcConfig.introspectUri()instead; result of moving to reactive webclient from JAX-RS clientPlease useOidcConfig.appWebClient()andOidcConfig.tokenEndpointUri()instead; result of moving to reactive webclient from JAX-RS clientthis will be removed without replacementuseIoMulti.writeToFile(java.nio.file.Path)insteadusetls().cipherSuite()instead. This method will be removed at 3.0.0 version.usetls().clientAuth()instead. This method will be removed at 3.0.0 version.usetls().enabledTlsProtocols()instead. This method will be removed at 3.0.0 version.usetls().sslContext()instead. This method will be removed at 3.0.0 version.
-
Deprecated Modules
-
Deprecated PackagesPackageDescriptionThis package is slated for removal with no replacement.
-
Deprecated InterfacesInterfaceDescriptionuse
io.helidon.media.common.MessageBodyReadableContentinsteadsince 2.0.0, useio.helidon.media.common.MessageBodyReaderinsteadUseKeyPerformanceIndicatorMetricsSettingsinstead.Specific internal spi for Helidon 3.x, going to be changed for version 4
-
Deprecated ClassesClassDescriptionuse io.helidon.logging.jul.HelidonConsoleHandler from helidon-logging-jul module insteadplease use
OutputStreamMultiinsteadOnly a CDI container should instantiate this class.This class is slated for removal.This class is slated for removal.An equivalent class now exists in Narayana itself.An equivalent class now exists in Narayana itself.This class is slated for removal. It makes incorrect assumptions about threading in a JTA environment. Specifically, this class' implementation incorrectly assumes that theJtaDataSource.afterCompletion(int)method will be invoked on the same thread as the governing transaction, which is not necessarily the case, especially in the case of asynchronous rollbacks. As a result,Connections acquired by instances of this class may not be closed properly.This class is slated for removal with no replacement.since 2.0.0, useMessageBodyContext.charset()insteadWill be removed. Please useIoMulti.multiFromByteChannel(java.nio.channels.ReadableByteChannel)insteadthis class will not be public in future versions of Helidonsince 2.0.0, useMaininsteaduseIdcsMtRoleMapperRxProviderinsteaduseIdcsRoleMapperRxProviderinsteaduseIdcsRoleMapperRxProviderBaseinsteaduseIoMulti.writeToFile(java.nio.file.Path)insteadsince 2.0.0 - useWebServer.Builderinstead
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionThis annotation is slated for removal.
-
Deprecated FieldsFieldDescriptionIt is strongly recommended not to use this algorithm as stated here RFC6151 - 2.It is strongly recommended not to use this algorithm as stated here RFC6149 - Section 6.It is strongly recommended not to use this algorithm as stated here RFC6151 - Section 2.1.SHA-1 is unsafe to use alone due to its vulnerability to collision attacksHMAC-MD5 should not be used for signature purposes, for more information see RFC6151 - Section 2.3.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 6.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 2.The value will change to "health.checks.diskSpace.path" in a future releaseThe value will change to "health.checks.diskSpace.thresholdPercent" in future releaseThe value will change to "health.checks.heapMemory.thresholdPercent" in a future releaseuse
EndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as welluseEndpointConfig.PROPERTY_OUTBOUND_SECRETinstead, the value will change in 4.x as welluseEndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as welluseEndpointConfig.PROPERTY_OUTBOUND_IDinstead, the value will change in 4.x as well
-
Deprecated MethodsMethodDescriptionsince 2.0.0, use
io.helidon.media.common.MessageBodyReaderContext.registerFiltersince 2.0.0, useio.helidon.media.common.MessageBodyReaderContext.registerReadersince 2.0.0, useio.helidon.media.common.MessageBodyReaderContext.registerReaderuseFormParams.builder()instead or registerio.helidon.media.common.FormParamsBodyReaderwill be removed in 4.x version.Please useIoMulti.outputStreamMultiBuilder()please useIoMulti.multiFromStream(java.io.InputStream)Please useIoMulti.outputStreamMulti()useMulti.create(io.helidon.common.reactive.Single)insteaduseMulti.create(java.lang.Iterable)insteaduseMulti.create(java.util.stream.Stream)insteaduseSingle.create(io.helidon.common.reactive.Single)insteaduse new time API, such asZonedDateTimeUse one of the time API classes, such asInstantorZonedDateTimeuse new time API, such asZonedDateTimeuse new time API, such asZoneIduse new time API, such asZoneIdThis method will be moved to a new modulethis method will be removed once a separate module for encryption is createdFor Hibernate use only.For Hibernate use only.For Hibernate use only.For Hibernate use only.For Hibernate use only.This method is slated for removal with no replacement.For use by the Helidon Config subsystem only.For use by the Helidon Config subsystem only.For use by the Helidon Config subsystem only.since 2.0.0, useContentReaders.readBytes(Publisher)insteadsince 2.0.0, useDefaultMediaSupport.inputStreamReader()since 2.0.0, useContentReaders.readString(Publisher, Charset)} orDefaultMediaSupport.stringReader()insteadsince 2.0.0, useContentReaders.readURLEncodedString(Publisher, Charset)insteadsince 2.0.0, useContentWriters.writeBytes(byte[], boolean)insteadsince 2.0.0, useDefaultMediaSupport.byteChannelWriter()} insteadsince 2.0.0, useDefaultMediaSupport.byteChannelWriter(RetrySchema)} insteadsince 2.0.0, useContentWriters.writeCharBuffer(CharBuffer, Charset)insteadsince 2.0.0, useContentWriters.writeCharSequence(CharSequence, Charset)orDefaultMediaSupport.charSequenceWriter()insteadUseMessageBodyReaderContext.create(MediaContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.ReadOnlyHeaders, java.util.Optional)instead, passingReadOnlyHeadersinstead ofReadOnlyParameters.UseMessageBodyReaderContext.create(MessageBodyReaderContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.ReadOnlyHeaders, java.util.Optional)instead, passingReadOnlyHeadersinstead ofReadOnlyParameters.since 2.0.0 useMessageBodyReaderContext.registerReader(MessageBodyReader)insteadsince 2.0.0 useMessageBodyReaderContext.registerReader(MessageBodyReader)insteadUseMessageBodyWriterContext.create(io.helidon.common.http.Headers)instead, passingHeadersinstead ofParameters.UseMessageBodyWriterContext.create(MediaContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)instead, passingHeadersinstead ofParameters.Use (@linkMessageBodyWriterContext.create(MessageBodyWriterContext, io.helidon.common.http.Headers)instead passingHeadersinstead ofParameters.UseMessageBodyWriterContext.create(MessageBodyWriterContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)instead, passingHeadersinstead ofParameters.since 2.0.0, useMessageBodyWriterContext.registerWriter(MessageBodyWriter)insteadsince 2.0.0, useMessageBodyWriterContext.registerWriter(MessageBodyWriter)insteadsince 2.0.0, useMessageBodyWriterContext.registerWriter(MessageBodyWriter)insteadsince 2.0.0 useMessageBodyWriterContext.registerWriter(MessageBodyWriter)insteadsince 3.1.2, this method will be updated to returnOptional<String>in future releases, useheaders().contentDisposition().filename()instead.since 3.1.2, this method will be updated to returnOptional<String>in future releases, useheaders().contentDisposition().name()instead.since 3.0.3, useJakartaSession.unwrap()instead.UseRegistryFactory.create(MetricsSettings)insteadUseRegistryFactory.getInstance(MetricsSettings)insteadUseMetricsSupport.builder()instead.This class will no longer be public in future versionsImplementMessagingChannelProcessoras a bean instead, which can peak to any messaging channel.ImplementMessagingChannelProcessoras a bean instead, which can peak to any messaging channel.useServerCdiExtensionto get the portuseOidcConfig.tokenCookieHandler()insteadplease useOidcConfig.tokenCookieHandler()insteaduseOidcCookieHandlerinstead, this method will no longer be avilableUseOidcConfig.generalWebClient()insteadPlease useOidcConfig.appWebClient()andOidcConfig.introspectUri()instead; result of moving to reactive webclient from JAX-RS clientPlease useOidcConfig.appWebClient()andOidcConfig.tokenEndpointUri()instead; result of moving to reactive webclient from JAX-RS clientthis will be removed without replacementthis method will be removed in a future release.this method will be removed in a future release.io.helidon.webserver.ConfiguredTlsManager.initSslContext(WebServerTls, KeyManager[], TrustManager[]) this method will be removed in a future release.this method will be removed in a future release.since 2.0.0, please useResponseHeaders.whenSent()since 2.0.0 - please useWebServer.builder()insteadsince 2.0.0 - please useWebServer.builder(), thenWebServer.Builder.config(io.helidon.config.Config), orWebServer.create(Routing, io.helidon.config.Config)since 2.0.0, please useServerConfiguration.Builder.addSocket(String, SocketConfiguration)insteadsince 2.0.0, please useServerConfiguration.namedSocket(String)insteadsince 2.0.0, useServerResponse.registerFilter(io.helidon.media.common.MessageBodyFilter)insteadsince 2.0.0, useServerResponse.registerWriter(io.helidon.media.common.MessageBodyWriter)insteadio.helidon.webserver.ServerResponse.registerWriter(Class<T>, Function<T, Flow.Publisher<DataChunk>>) Since 2.0.0, useServerResponse.registerWriter(io.helidon.media.common.MessageBodyWriter)insteadsince 2.0.0, useServerResponse.registerWriter(io.helidon.media.common.MessageBodyWriter)insteadsince 2.0.0, useServerResponse.registerWriter(io.helidon.media.common.MessageBodyWriter)insteadusetls().cipherSuite()instead. This method will be removed at 3.0.0 version.since 2.0.0, please useWebServerTls.Builder.enabledProtocols(String...)insteadsince 2.0.0, please useSocketConfiguration.SocketConfigurationBuilder.tls(Supplier)insteadsince 2.0.0, please useSocketConfiguration.Builder.tls(WebServerTls)insteadsince 2.0.0 please useSocketConfiguration.Builder.timeout(long, java.util.concurrent.TimeUnit)insteadusetls().clientAuth()instead. This method will be removed at 3.0.0 version.usetls().enabledTlsProtocols()instead. This method will be removed at 3.0.0 version.usetls().sslContext()instead. This method will be removed at 3.0.0 version.this method will be removed in a future release.
-
Deprecated ConstructorsConstructorDescriptionUse
HoconConfigParser.builder()to construct a customized instance, orHoconConfigParser.create()to get an instance with defaultsThis method should not be directly used, useYamlConfigParser.create()Only a CDI container should invoke this constructor.For Hibernate use only.For use byServiceLoaderinstances only.For invocation by CDI only.This constructor continues to exist for backwards compatibility only and its use is strongly discouraged. Please use theConditionallyCloseableConnection(Connection, boolean, boolean)constructor instead and consider supplyingtruefor itsstrictClosedCheckingparameter. In the future, this constructor may change, without prior notice, to cause newConditionallyCloseableConnectioninstances created by it to behave as if they were created by invocations of theConditionallyCloseableConnection(Connection, boolean, boolean)constructor instead, withtruesupplied for itsstrictClosedCheckingparameter.This constructor continues to exist for backwards compatibility only and its use is strongly discouraged. Please use theConditionallyCloseableConnection(Connection, boolean, boolean)constructor instead and consider supplyingtruefor itsstrictClosedCheckingparameter. In the future, this constructor may change, without prior notice, to cause newConditionallyCloseableConnectioninstances created by it to behave as if they were created by invocations of theConditionallyCloseableConnection(Connection, boolean, boolean)constructor instead, withtruesupplied for itsstrictClosedCheckingparameter.This constructor exists only to handle certain XA-aware connection pools that allow an end-user caller to "borrow"XAConnections and to "return" them using theirclose()methods, a non-standard practice which is discouraged by the documentation ofPooledConnection(from whichXAConnectioninherits). For such connection pools,XAConnections that are "borrowed" must be returned in this manner to avoid leaks. This constructor implements this behavior. Before using it, you should make sure that the connection pool in question implementing or supplying theXADataSourcehas the behavior described above; normally anXAConnectionshould not be used directly or closed by end-user code.Only intended for service loader, do not instantiateForServiceLoaderuse only.For use byServiceLoaderonly.For use by the Helidon Config subsystem only.this is a Java ServiceLoader implementation and the constructor should not be used directlythis is a Java ServiceLoader implementation and the constructor should not be used directlythis is a Java ServiceLoader implementation and the constructor should not be used directlyplease useAppRoleVaultAuth.builder()please useK8sVaultAuth.builder()Do not use this constructor, this is a service loader service!Do not use this constructor, this is a service loader service!Do not use this constructor, this is a service loader service!Do not use this constructor, this is a service loader service!do not use, this should only be invoked by Java Service LoaderOnly intended for service loader, do not instantiateOnly intended for service loader, do not instantiate
-
Deprecated Enum ConstantsEnum ConstantDescriptionuse
Http.Status.HTTP_VERSION_NOT_SUPPORTED_505instead (inconsistent name)
Http.Status.HTTP_VERSION_NOT_SUPPORTED_505instead (inconsistent name)