Deprecated API
Contents
-
Deprecated Packages
-
Deprecated InterfacesInterfaceDescriptionuse Servlet 3.0
AsyncContext
insteaduse Servlet 3.0AsyncContext
insteaduse newDecorator
-
Deprecated ClassesClassDescriptionuse Servlet 3.0
AsyncContext
insteaduse Servlet 3.0AsyncContext
insteaduse Servlet 3.0AsyncContext
insteaduse Servlet 3.0AsyncContext
insteadreplaced withPathMappings
(this class will be removed in Jetty 10)useNetworkTrafficListener
insteaduseNetworkTrafficSocketChannelEndPoint
insteaduseSocketChannelEndPoint
insteaduseConfigurableSpnegoAuthenticator
instead.useConfigurableSpnegoLoginService
insteaduseCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with aRequestLog.Writer
useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with anAsyncRequestLogWriter
useConnectionStatistics
instead.This class is no longer required as ERROR dispatch is only done if there is an error page target.UseDebugListener
Use @InetAccessHandler
.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with aRequestLogWriter
useNetworkTrafficServerConnector
instead.UseDetectorConnectionFactory
with aSslConnectionFactory
instead.useCustomRequestLog
given format stringCustomRequestLog.EXTENDED_NCSA_FORMAT
with anSlf4jRequestLogWriter
useBase64
insteadnot used anymoreUse Java 8 methodConcurrentHashMap.newKeySet()
instead.Replaced by org.eclipse.jetty.http.MultiPartFormInputStream The code for MultiPartInputStream is slower than its replacement MultiPartFormInputStream. However this class accepts formats non compliant the RFC that the new MultiPartFormInputStream does not accept.reported as fixed in jdk 7, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6916498fixed in jdvm 9b130, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8157570fixed in jdk 9, see https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6489540fixed in jdk 8u192classloader does not seem to be held any moresun.security.pkcs11.SunPKCS11 class explicitly sets thread classloader to nullUsePathResource
Does not handle MR Jars
-
Deprecated Exception ClassesException ClassDescriptionuse Servlet 3.0
AsyncContext
instead
-
Deprecated FieldsFieldDescriptionfeature will be removed in Jetty 10.x, with no replacement.use
System.lineSeparator()
instead
-
Deprecated MethodsMethodDescriptionRelying on this method indicates a reliance on the implementation details.Relying on this method indicates a reliance on the implementation details.no replacement, do not use ituse
HttpDestination.remove(Connection)
insteadNot useduseMetaData.getHttpVersion()
insteadno replacement providedno replacement provided.useByteBufferPool.Bucket.acquire()
insteaduse invertedSslConnection.isRequireCloseMessage()
insteaduse invertedSslConnection.setRequireCloseMessage(boolean)
insteadUseMBeanContainer.mbeanFor(Object)
insteadUnused convenience method no longer supported.Unused convenience mechanism not used.Unused convenience mechanism not used.feature will be removed in Jetty 10.x, with no replacement.useGzipHandler.getIncludedMethods()
instead. (Will be removed in Jetty 10)feature will be removed in Jetty 10.x, with no replacement.Replaced by ConnectionLimitReplaced by ConnectionLimitReplaced by ConnectionLimitReplaced byConnectionLimit
useServer.addBeanToAllConnectors(Object)
instead.don't use as socket close linger time has undefined behavior for non-blocking socketsdon't use as socket close linger time has undefined behavior for non-blocking socketsuseAbstractSessionCache.release(String, Session)
insteadAs of Version 2.2, this method is replaced bySession.getAttributeNames()
@see releaseuse theDecoratedObjectFactory
from getAttribute("org.eclipse.jetty.util.DecoratedObjectFactory") orServletContextHandler.getObjectFactory()
insteaduse theDecoratedObjectFactory
from getAttribute("org.eclipse.jetty.util.DecoratedObjectFactory") orServletContextHandler.getObjectFactory()
insteadorg.eclipse.jetty.servlet.ServletContextHandler.setDecorators(List<ServletContextHandler.Decorator>) use theDecoratedObjectFactory
from getAttribute("org.eclipse.jetty.util.DecoratedObjectFactory") orServletContextHandler.getObjectFactory()
insteaduseBase64.Encoder.encodeToString(byte[])
} instead.don't use - there is no way to reliably tell if a ByteBuffer is mapped.useDumpable.dump(Dumpable)
insteaduseDumpable.dumpObject(Appendable, Object)
insteadno replacement offered.no replacement offered.No longer supported. Instead use aPool.StrategyType
to configure the pool.UsePool.reserve()
insteaduseURIUtil
orUrlEncoded
insteaduseResource.getListHTML(String, boolean, String)
instead and supply raw query string.use {Resource.getURI()
.toURL() instead.useResource.close()
useSslContextFactory.Server.getNeedClientAuth()
insteaduseSslContextFactory.Server.getWantClientAuth()
insteadno replacementno replacementuseSampleStatistic.record(long)
insteaduseLocker.lock()
insteadpass the queue to the constructor instead
-
Deprecated ConstructorsConstructorDescriptionnot supported, you must have a
SslContextFactory.Server
for this to work.useClient(boolean)
insteaduseSslContextFactory.setKeyStorePath(String)
insteaduse Constructor which has location informationuse Constructor which has location informationuseXmlConfiguration(org.eclipse.jetty.util.resource.Resource)
instead due to escaping issues
-
Deprecated Enum Constants