Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionRacy API. Do not use. There is no replacement.Racy API. Do not use. There is no replacement.Racy API. Do not use. There is no replacement.replaced by
AbstractConnectionPool.onRemoved(Connection)useRequest.onRequestListener(Request.Listener)instead.useHttpDestination(HttpClient, Origin)insteaduseServletApiRequest.getAuthenticationState()instead.UseServletContextHandler.ENVIRONMENTinstead.Use org.eclipse.jetty.util.ClassMatcheruseConfiguration.getHiddenClasses()insteaduseConfiguration.getProtectedClasses()insteaduseWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.this method is no longer usedthis method is no longer neededuseCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.Interceptor has been removed with no replacement in the EE10 implementationReplaced byMultiPartFormInputStream. This code is slower and subject to more bugs than its replacementMultiPartFormInputStream. However, this class accepts non-compliant RFC formats that the newMultiPartFormInputStreamdoes not accept. This class is unavailable on ee10 and newer environments.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.Interceptor has been removed with no replacement in the EE10 implementationReplaced byMultiPartFormInputStream. This code is slower and subject to more bugs than its replacementMultiPartFormInputStream. However, this class accepts non-compliant RFC formats that the newMultiPartFormInputStreamdoes not accept. This class is unavailable on ee10 and newer environments.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.useComplianceViolation.Listener.onComplianceViolation(Event)instead. Will be removed in Jetty 12.1.0Useorg.eclipse.jetty.server.CookieCacheUseCookieCompliance.Violation.SPECIAL_CHARS_IN_QUOTESinstead.no replacement because was mistakenly considered a violationuseHttpDateTimeinsteaduseHttpDateTime.parseToEpoch(String)insteaduseComplianceViolation.CapturingListener.VIOLATIONS_ATTR_KEYinstead.
(Note: new ATTR captures all Compliance violations, not just HTTP.
Make sure you haveHttpConnectionFactory.setRecordHttpComplianceViolations(true).
Also make sure that aComplianceViolation.CapturingListenerhas been added as a bean to either theConnectororServerfor the Attribute to be created.)overrideMultiPart.Part.newContentSource(ByteBufferPool.Sized, long, long)instead.useMultiPartFormData.getParts(Attributes)insteadNo replacement, never used.No replacement, never used.use SessionContainer insteaduseQuicServerConnectorinsteadreplaced byTransportreplaced byTransportreplaced byTransportreplaced byTransport.TCPUnixreplaced byTransport.isIntrinsicallySecure()useTransportinsteadno replacementuseContent.Source.asByteBuffer(Source, Promise)insteadno replacementno replacementinstances of this class can only be created by the implementationfunctionality removed, no replacementreplaced byTransportuseComponents.getExecutor()insteaduseNetworkConnectionLimitinsteaduseFormFields.onFields(Request, Promise.Invocable)instead.useFormFields.getFields(Request)instead.do not use it, no replacement.Do not override. No longer invoked by Jetty.useHttpConfiguration.getComplianceViolationListeners()instead to know if there are anyComplianceViolation.Listenerto notify. this method will be removed in Jetty 12.1.0useHttpConfiguration.addComplianceViolationListener(ComplianceViolation.Listener)instead. this method will be removed in Jetty 12.1.0useRequest.onParameters(Request, Promise.Invocable)instead.useSizeLimitHandlerinstead.useAbstractSessionManager.isUsingUriParameters()instead, will be removed in Jetty 12.1.0useAbstractSessionManager.setUsingUriParameters(boolean)instead, will be removed in Jetty 12.1.0this class is redundant now thatLifeCycle.Listenerhas default methods.cache is no longer supported. UseConcurrentPool.StrategyType.THREAD_IDcache is no longer supported. UseConcurrentPool.StrategyType.THREAD_IDuseIO.copyDir(Path, Path)instead to avoid foreign target behavior across FileSystems.Using ResourceFactoryInternals.isSupported() instead.useResource.newInputStream()orIOResourcesinstead.useResourceFactory.newClassLoaderResource(String, boolean)instead, will be removed in Jetty 12.1.0useResourceFactory.newClassLoaderResource(String)orResourceFactory.newClassLoaderResource(String, boolean)instead, will be removed in Jetty 12.1.0use {#link getCredential} instead.use {#link newCredential} instead.useString(byte[], int, int, Charset)insteadThis class has been renamed toAdaptiveExecutionStrategyuseScheduledExecutorSchedulerinstead.useURIUtil.correctURI(URI)instead, will be removed in Jetty 12.1.0useUrlEncoded.decodeTo(String, MultiMap, Charset)insteadno replacement, applications should not call this method.no replacement, applications should not call this method.
-
Deprecated InterfacesInterfaceDescriptionInterceptor has been removed with no replacement in the EE10 implementationInterceptor has been removed with no replacement in the EE10 implementationfunctionality removed, no replacement
-
Deprecated ClassesClassDescriptionUse
CompletableResponseListenerinsteadUseCrossOriginHandlerinsteaduseQoSHandlerinstead.Use org.eclipse.jetty.util.ClassMatcherThis class is no longer required as ERROR dispatch is only done if there is an error page target.Replaced byMultiPartFormInputStream. This code is slower and subject to more bugs than its replacementMultiPartFormInputStream. However, this class accepts non-compliant RFC formats that the newMultiPartFormInputStreamdoes not accept. This class is unavailable on ee10 and newer environments.useQoSHandlerinstead.This class is no longer required as ERROR dispatch is only done if there is an error page target.Replaced byMultiPartFormInputStream. This code is slower and subject to more bugs than its replacementMultiPartFormInputStream. However, this class accepts non-compliant RFC formats that the newMultiPartFormInputStreamdoes not accept. This class is unavailable on ee10 and newer environments.useQoSHandlerinstead.Useorg.eclipse.jetty.server.CookieCacheuseHttpDateTimeinsteadNo replacement, never used.No replacement, never used.use SessionContainer insteaduseQuicServerConnectorinsteadreplaced byTransportreplaced byTransportreplaced byTransportuseNetworkConnectionLimitinsteadUseHandler.AbstractUseDetectorConnectionFactorywith aSslConnectionFactoryinstead.useSizeLimitHandlerinstead.this class is redundant now thatLifeCycle.Listenerhas default methods.useorg.eclipse.jetty.server.StateLifeCycleListenerinsteadThis class has been renamed toAdaptiveExecutionStrategyuseScheduledExecutorSchedulerinstead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionUse
ServletContextHandler.ENVIRONMENTinstead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.useComplianceViolation.CapturingListener.VIOLATIONS_ATTR_KEYinstead.
(Note: new ATTR captures all Compliance violations, not just HTTP.
Make sure you haveHttpConnectionFactory.setRecordHttpComplianceViolations(true).
Also make sure that aComplianceViolation.CapturingListenerhas been added as a bean to either theConnectororServerfor the Attribute to be created.)Using ResourceFactoryInternals.isSupported() instead.
-
Deprecated MethodsMethodDescriptionRacy API. Do not use. There is no replacement.Racy API. Do not use. There is no replacement.Racy API. Do not use. There is no replacement.replaced by
AbstractConnectionPool.onRemoved(Connection)useHttpClientTransport.connect(SocketAddress, Map)instead.useRequest.onRequestListener(Request.Listener)instead.useErrorHandler.isShowMessageInTitle()insteaduseServletApiRequest.getAuthenticationState()instead.User ID no longer supportedPriority no longer supportedSession tracking is no longer supportedSession tracking is no longer supporteduseConfiguration.getHiddenClasses()insteaduseConfiguration.getProtectedClasses()insteadthis method is no longer usedthis method is no longer neededuse #getBaseResource()useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.use #setBaseResourceuseErrorHandler.isShowMessageInTitle()insteaduseInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.no replacement provideduse getParts().isEmpty()no replacement provided.no replacement offered.no replacement offered.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0UseServletHandler.getMatchedServlet(String)insteaduseServletHandler.getMatchedServlet(String)insteadUser ID no longer supportedPriority no longer supportedSession tracking is no longer supportedSession tracking is no longer supporteduse #getBaseResource()useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.useCompactPathRulewithRewriteHandlerinstead. Will be removed from ee10 onwards.use #setBaseResourceuseErrorHandler.isShowMessageInTitle()insteaduseInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.useInetAccessHandler.include(String)instead.no replacement provideduse getParts().isEmpty()no replacement provided.no replacement offered.no replacement offered.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0UseServletHandler.getMatchedServlet(String)insteaduseServletHandler.getMatchedServlet(String)insteadUser ID no longer supportedPriority no longer supportedSession tracking is no longer supportedSession tracking is no longer supporteduseComplianceViolation.Listener.onComplianceViolation(Event)instead. Will be removed in Jetty 12.1.0useHttpDateTime.parseToEpoch(String)insteaduseHttpField.getValueParameters(String, Map)insteadoverrideMultiPart.Part.newContentSource(ByteBufferPool.Sized, long, long)instead.useMultiPartFormData.getParts(Attributes)insteadusePathSpec.matched(String)insteadusePathSpec.matched(String)insteaduseServletPathSpec.matched(String)#MatchedPath.getPathInfo()instead.useSession.getLocalSocketAddress()insteaduseSession.getRemoteSocketAddress()insteadThis API is experimental and may be removed in future releasesreplaced byTransport.TCPUnixreplaced byTransport.isIntrinsicallySecure()useTransportinsteadno replacementuseContent.Source.asByteBuffer(Source, Promise)insteadno replacementno replacementuseEndPoint.getLocalSocketAddress()insteaduseEndPoint.getRemoteSocketAddress()instead.useComponents.getExecutor()insteaduseFormFields.onFields(Request, Promise.Invocable)instead.useFormFields.getFields(Request)instead.do not use it, no replacement.Do not override. No longer invoked by Jetty.OverrideEventsHandler.onComplete(Request, int, HttpFields, Throwable)instead.useStatisticsHandler.getRequestTotal()instead.useHttpConfiguration.getComplianceViolationListeners()instead to know if there are anyComplianceViolation.Listenerto notify. this method will be removed in Jetty 12.1.0useHttpConfiguration.addComplianceViolationListener(ComplianceViolation.Listener)instead. this method will be removed in Jetty 12.1.0useRequest.onParameters(Request, Promise.Invocable)instead.useAbstractSessionManager.isUsingUriParameters()instead, will be removed in Jetty 12.1.0useAbstractSessionManager.setUsingUriParameters(boolean)instead, will be removed in Jetty 12.1.0useJSON.setArrayConverter(Function)instead.useClassMatcherdirectly.useIO.copyDir(Path, Path)instead to avoid foreign target behavior across FileSystems.useResource.newInputStream()orIOResourcesinstead.useResourceFactory.newClassLoaderResource(String, boolean)instead, will be removed in Jetty 12.1.0useResourceFactory.newClassLoaderResource(String)orResourceFactory.newClassLoaderResource(String, boolean)instead, will be removed in Jetty 12.1.0use {#link getCredential} instead.use {#link newCredential} instead.no replacementno replacementuseString(byte[], int, int, Charset)insteaduseURIUtil.correctURI(URI)instead, will be removed in Jetty 12.1.0useUrlEncoded.decodeTo(String, MultiMap, Charset)insteaduseUrlEncoded.decodeUtf8To(String, int, int, Fields)instead.useUrlEncoded.decodeUtf8To(String, Fields)instead.no replacement, applications should not call this method.no replacement, applications should not call this method.useWebSocketConnection.getLocalSocketAddress()insteaduseWebSocketConnection.getRemoteSocketAddress()instead
-
Deprecated ConstructorsConstructorDescriptionuse
HttpDestination(HttpClient, Origin)insteaduseClientUpgradeRequest()instead.useClientUpgradeRequest()instead.replaced byTransportinstances of this class can only be created by the implementationcache is no longer supported. UseConcurrentPool.StrategyType.THREAD_IDcache is no longer supported. UseConcurrentPool.StrategyType.THREAD_IDuseClientUpgradeRequest()instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionUse
CookieCompliance.Violation.SPECIAL_CHARS_IN_QUOTESinstead.no replacement because was mistakenly considered a violation