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 usesResource
instead 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()
insteadUseServletContextHandler.ENVIRONMENT
instead.use coreCachingWebAppClassLoader
insteadUse org.eclipse.jetty.util.ClassMatcheruseConfiguration.getHiddenClasses()
insteaduseConfiguration.getProtectedClasses()
insteaduse the coreWebAppClassLoader
directly instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.this method is no longer usedthis method is no longer neededUseServletContextHandler.ENVIRONMENT
instead.use coreCachingWebAppClassLoader
insteaduseWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.this method is no longer usedthis method is no longer neededuseCompactPathRule
withRewriteHandler
instead. Will be removed from ee10 onwards.useCompactPathRule
withRewriteHandler
instead. 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 newMultiPartFormInputStream
does not accept. This class is unavailable on ee10 and newer environments.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0use coreCachingWebAppClassLoader
insteaduse the coreWebAppClassLoader
directly instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.useCompactPathRule
withRewriteHandler
instead. Will be removed from ee10 onwards.useCompactPathRule
withRewriteHandler
instead. 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 newMultiPartFormInputStream
does not accept. This class is unavailable on ee10 and newer environments.use core level ComplianceViolation.Listener instead. - will be removed in Jetty 12.1.0use coreCachingWebAppClassLoader
insteaduse the coreWebAppClassLoader
directly instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.useComplianceViolation.Listener.onComplianceViolation(Event)
instead. Will be removed in Jetty 12.1.0Useorg.eclipse.jetty.server.CookieCache
useHttpDateTime
insteaduseHttpDateTime.parseToEpoch(String)
insteaduseComplianceViolation.CapturingListener.VIOLATIONS_ATTR_KEY
instead.
(Note: new ATTR captures all Compliance violations, not just HTTP.
Make sure you haveHttpConnectionFactory.setRecordHttpComplianceViolations(true)
.
Also make sure that aComplianceViolation.CapturingListener
has been added as a bean to either theConnector
orServer
for 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.Builder
instead.UseOpenIdConfiguration.Builder
instead.UseOpenIdConfiguration.Builder
instead.UseOpenIdConfiguration.Builder
instead.useOpenIdConfiguration.Builder
to configure the OpenID Configuration.useOpenIdConfiguration.getAuthorizationEndpoint()
instead.useOpenIdConfiguration.Builder
to configure the OpenID Configuration.useOpenIdConfiguration.Builder
to configure the OpenID Configuration.useComponents.getExecutor()
insteadno 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/*.xml
feature 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.UseEagerContentHandler
instead.useRequest.onParameters(Request, Promise.Invocable)
instead.Replaced withShutdownService
component, 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 nameShutdownService
No replacement.No replacement.No replacement.useSizeLimitHandler
instead.this class is redundant now thatLifeCycle.Listener
has default methods.useIO.copyDir(Path, Path)
instead to avoid foreign target behavior across FileSystems.Using ResourceFactoryInternals.isSupported() instead.useResource.newInputStream()
orIOResources
instead.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.useString(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.This class has been renamed toAdaptiveExecutionStrategy
useScheduledExecutorScheduler
instead.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
CrossOriginHandler
insteaduseQoSHandler
instead.use coreCachingWebAppClassLoader
insteadUse org.eclipse.jetty.util.ClassMatcheruse the coreWebAppClassLoader
directly instead.UseCrossOriginHandler
insteaduseQoSHandler
instead.use coreCachingWebAppClassLoader
insteadThis 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 newMultiPartFormInputStream
does not accept. This class is unavailable on ee10 and newer environments.useQoSHandler
instead.use coreCachingWebAppClassLoader
insteaduse the coreWebAppClassLoader
directly 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 newMultiPartFormInputStream
does not accept. This class is unavailable on ee10 and newer environments.useQoSHandler
instead.use coreCachingWebAppClassLoader
insteaduse the coreWebAppClassLoader
directly instead.Useorg.eclipse.jetty.server.CookieCache
useHttpDateTime
insteadNo replacement, never used.No replacement, never used.UseHandler.Abstract
UseDetectorConnectionFactory
with aSslConnectionFactory
instead.Replaced withShutdownService
component, which is not a singleton.useSizeLimitHandler
instead.this class is redundant now thatLifeCycle.Listener
has default methods.useorg.eclipse.jetty.server.StateLifeCycleListener
insteadThis class has been renamed toAdaptiveExecutionStrategy
useScheduledExecutorScheduler
instead.
-
Deprecated Enum Classes
-
Deprecated Exception Classes
-
Deprecated FieldsFieldDescriptionUse
ServletContextHandler.ENVIRONMENT
instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.UseServletContextHandler.ENVIRONMENT
instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.HIDDEN_CLASSES_ATTRIBUTE
instead.useWebAppClassLoading.PROTECTED_CLASSES_ATTRIBUTE
instead.useComplianceViolation.CapturingListener.VIOLATIONS_ATTR_KEY
instead.
(Note: new ATTR captures all Compliance violations, not just HTTP.
Make sure you haveHttpConnectionFactory.setRecordHttpComplianceViolations(true)
.
Also make sure that aComplianceViolation.CapturingListener
has been added as a bean to either theConnector
orServer
for 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/*.xml
feature instead.Using ResourceFactoryInternals.isSupported() instead.
-
Deprecated MethodsMethodDescriptionuse
AnnotationParser.parseClass(Set, Resource, Resource)
instead (which usesResource
instead 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()
insteadUser 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()useCompactPathRule
withRewriteHandler
instead. Will be removed from ee10 onwards.useCompactPathRule
withRewriteHandler
instead. 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()useCompactPathRule
withRewriteHandler
instead. Will be removed from ee10 onwards.useCompactPathRule
withRewriteHandler
instead. 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.Builder
to configure the OpenID Configuration.useOpenIdConfiguration.getAuthorizationEndpoint()
instead.useOpenIdConfiguration.Builder
to configure the OpenID Configuration.useOpenIdConfiguration.Builder
to 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.UseEagerContentHandler
instead.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 nameShutdownService
No replacement.No replacement.No replacement.useClassMatcher
directly.useIO.copyDir(Path, Path)
instead to avoid foreign target behavior across FileSystems.useResource.newInputStream()
orIOResources
instead.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.0This method is currently resolving relative paths against the current directory, which is a mechanism that should be implemented by aResourceFactory
. All calls to this method need to be reviewed.useUrlEncoded.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.Builder
instead.UseOpenIdConfiguration.Builder
instead.UseOpenIdConfiguration.Builder
instead.UseOpenIdConfiguration.Builder
instead.useClientUpgradeRequest(URI)
instead.there is no alternative intended to publicly construct aJettyWebSocketFrame
.
-
Deprecated Enum ConstantsEnum ConstantDescriptionUse SPECIAL_CHARS_IN_QUOTESno replacement because was mistakenly considered a violation