Deprecated API
Contents
- Terminally Deprecated
 - Interfaces
 - Classes
 - Enum Classes
 - Exception Classes
 - Fields
 - Methods
 - Constructors
 - Enum Constants
 
- 
Terminally Deprecated ElementsElementDescriptionuse
AnnotationParser.parseClass(Set, Resource, Resource)instead (which usesResourceinstead ofPath)Racy 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 byAbstractConnectionPool.onRemoved(Connection)useHttpClient.getHttpClientTransport()insteaduseRequest.onRequestListener(Request.Listener)instead.useDeploymentScanner.getWebappsDirectories()insteaduseServletApiRequest.getAuthenticationState()instead.UseServletContextHandler.ENVIRONMENTinstead.UseCrossOriginHandlerinsteaduse coreCachingWebAppClassLoaderinsteadUse org.eclipse.jetty.util.ClassMatcheruseConfiguration.getHiddenClasses()insteaduseConfiguration.getProtectedClasses()insteaduse the coreWebAppClassLoaderdirectly instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.this method is no longer usedthis method is no longer neededUseServletContextHandler.ENVIRONMENTinstead.UseCrossOriginHandlerinsteaduse coreCachingWebAppClassLoaderinsteaduseWebAppClassLoading.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 or later implementationsReplaced 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.0UseCrossOriginHandlerinsteaduse coreCachingWebAppClassLoaderinsteaduse the coreWebAppClassLoaderdirectly instead.useWebAppClassLoading.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 or later implementationsReplaced 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.0UseCrossOriginHandlerinsteaduse coreCachingWebAppClassLoaderinsteaduse the coreWebAppClassLoaderdirectly instead.useWebAppClassLoading.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.no replacementuseContent.Source.asByteBuffer(Source, Promise)insteadno replacementno replacementinstances of this class can only be created by the implementationUseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.useOpenIdConfiguration.Builderto configure the OpenID Configuration.useOpenIdConfiguration.getAuthorizationEndpoint()instead.useOpenIdConfiguration.Builderto configure the OpenID Configuration.useOpenIdConfiguration.Builderto configure the OpenID Configuration.useComponents.getExecutor()insteaduseNetworkConnectionLimitinsteadno replacement.no longer used. see DeploymentScanner EnvironmentConfig for new location.no longer used byDeployable.initializeDefaults(Attributes), functionality still exists in properties files, but is now managed by DeploymentScanner.no longer used byDeployable.initializeDefaults(Attributes), functionality exists as a${jetty.base}/environments/*.xmlfeature instead.useFormFields.onFields(Request, Promise.Invocable)instead.useFormFields.getFields(Request)instead.do not use it, no replacement.Do not override. No longer invoked by Jetty.use the newCompressionHandleravailable inorg.eclipse.jetty.compression:jetty-compression-serverwith your choice of compression implementation (gzip isorg.eclipse.jetty.compression:jetty-compression-gzip, brotli isorg.eclipse.jetty.compression:jetty-compression-brotli, and zstandard isorg.eclipse.jetty.compression:jetty-compression-zstandard)UseEagerContentHandlerinstead.useRequest.onParameters(Request, Promise.Invocable)instead.Replaced withShutdownServicecomponent, which is not a singleton.No replacement.No replacement.No direct replacement, seeShutdownService, which is not a singleton.No replacement.No replacement.No replacement, use SLF4J Logger at nameShutdownServiceNo replacement.No replacement.No replacement.useSizeLimitHandlerinstead.the growth factor isn't used anymorethe growth factor isn't used anymorethe growth strategy has changed and doesn't use this constant anymore.this class is redundant now thatLifeCycle.Listenerhas default methods.useIO.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.0useScanner.BulkListener.pathsChanged(Map)insteaduseScanner.BulkListener.pathsChanged(Map)instead.use {#link getCredential} instead.use {#link newCredential} instead.useConstantThrowableinsteaduseString(byte[], int, int, Charset)insteaduseQueuedThreadPool.getCurrentReservedThreads()insteadThe term available can be applied to either idle or reserved threads, but not both. UseQueuedThreadPool.getCurrentReservedThreads()orQueuedThreadPool.getIdleThreads()instead.The combination of idle and reserved threads is essentially meaningless.useScheduledExecutorSchedulerinstead.useURIUtil.correctURI(URI)instead, will be removed in Jetty 12.1.0useUrlEncoded.decodeTo(String, MultiMap, Charset)insteaduseClientUpgradeRequest(URI)instead.there is no alternative intended to publicly construct aJettyWebSocketFrame. 
- 
Deprecated InterfacesInterfaceDescriptionInterceptor has been removed with no replacement in the EE10 or later implementationsInterceptor has been removed with no replacement in the EE10 or later implementations
 
- 
Deprecated ClassesClassDescriptionUse
CrossOriginHandlerinsteaduseQoSHandlerinstead.use coreCachingWebAppClassLoaderinsteadUse org.eclipse.jetty.util.ClassMatcheruse the coreWebAppClassLoaderdirectly instead.UseCrossOriginHandlerinsteaduseQoSHandlerinstead.use coreCachingWebAppClassLoaderinsteadThis 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.UseCrossOriginHandlerinsteaduseQoSHandlerinstead.use coreCachingWebAppClassLoaderinsteaduse the coreWebAppClassLoaderdirectly instead.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.UseCrossOriginHandlerinsteaduseQoSHandlerinstead.use coreCachingWebAppClassLoaderinsteaduse the coreWebAppClassLoaderdirectly instead.Useorg.eclipse.jetty.server.CookieCacheuseHttpDateTimeinsteadNo replacement, never used.No replacement, never used.useNetworkConnectionLimitinsteadUseHandler.Abstractuse the newCompressionHandleravailable inorg.eclipse.jetty.compression:jetty-compression-serverwith your choice of compression implementation (gzip isorg.eclipse.jetty.compression:jetty-compression-gzip, brotli isorg.eclipse.jetty.compression:jetty-compression-brotli, and zstandard isorg.eclipse.jetty.compression:jetty-compression-zstandard)UseDetectorConnectionFactorywith aSslConnectionFactoryinstead.Replaced withShutdownServicecomponent, which is not a singleton.useSizeLimitHandlerinstead.this class is redundant now thatLifeCycle.Listenerhas default methods.useorg.eclipse.jetty.server.StateLifeCycleListenerinsteaduseScheduledExecutorSchedulerinstead. 
- 
Deprecated Enum Classes
 
- 
Deprecated Exception Classes
 
- 
Deprecated FieldsFieldDescriptionUse
ServletContextHandler.ENVIRONMENTinstead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTEinstead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTEinstead.UseServletContextHandler.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.)no replacement.no longer used. see DeploymentScanner EnvironmentConfig for new location.no longer used byDeployable.initializeDefaults(Attributes), functionality still exists in properties files, but is now managed by DeploymentScanner.no longer used byDeployable.initializeDefaults(Attributes), functionality exists as a${jetty.base}/environments/*.xmlfeature instead.the growth strategy has changed and doesn't use this constant anymore.Using ResourceFactoryInternals.isSupported() instead. 
- 
Deprecated MethodsMethodDescriptionuse
AnnotationParser.parseClass(Set, Resource, Resource)instead (which usesResourceinstead ofPath)Racy 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 byAbstractConnectionPool.onRemoved(Connection)useHttpClient.getHttpClientTransport()insteaduseRequest.onRequestListener(Request.Listener)instead.useDeploymentScanner.getWebappsDirectories()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 neededUser ID no longer supportedPriority no longer supportedSession tracking is no longer supportedSession tracking is no longer supportedthis 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()insteadno replacementuseContent.Source.asByteBuffer(Source, Promise)insteadno replacementno replacementuseOpenIdConfiguration.Builderto configure the OpenID Configuration.useOpenIdConfiguration.getAuthorizationEndpoint()instead.useOpenIdConfiguration.Builderto configure the OpenID Configuration.useOpenIdConfiguration.Builderto configure the OpenID Configuration.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.UseEagerContentHandlerinstead.useRequest.onParameters(Request, Promise.Invocable)instead.No replacement.No replacement.No direct replacement, seeShutdownService, which is not a singleton.No replacement.No replacement.No replacement, use SLF4J Logger at nameShutdownServiceNo replacement.No replacement.No replacement.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.0useScanner.BulkListener.pathsChanged(Map)insteaduseScanner.BulkListener.pathsChanged(Map)instead.use {#link getCredential} instead.use {#link newCredential} instead.no replacementno replacementuseString(byte[], int, int, Charset)insteaduseQueuedThreadPool.getCurrentReservedThreads()insteadThe term available can be applied to either idle or reserved threads, but not both. UseQueuedThreadPool.getCurrentReservedThreads()orQueuedThreadPool.getIdleThreads()instead.The combination of idle and reserved threads is essentially meaningless.useURIUtil.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.useWebSocketConnection.getLocalSocketAddress()insteaduseWebSocketConnection.getRemoteSocketAddress()instead 
- 
Deprecated ConstructorsConstructorDescriptionuse
ClientUpgradeRequest()instead.useClientUpgradeRequest()instead.instances of this class can only be created by the implementationUseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.UseOpenIdConfiguration.Builderinstead.the growth factor isn't used anymorethe growth factor isn't used anymoreuseClientUpgradeRequest(URI)instead.there is no alternative intended to publicly construct aJettyWebSocketFrame. 
- 
Deprecated Enum ConstantsEnum ConstantDescriptionUse
CookieCompliance.Violation.SPECIAL_CHARS_IN_QUOTESinstead.no replacement because was mistakenly considered a violation