Top For Removal Deprecated By Reference
Jetty 12.0.6

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
12.0.6
org.eclipse.jetty.http.ComplianceViolation.Listener.onComplianceViolation(ComplianceViolation.Mode
the mode
mode
,
ComplianceViolation
the violation
violation
,
String
the details
details
)

use onComplianceViolation(Event) instead. Will be removed in Jetty 12.1.0

12.0.6
org.eclipse.jetty.http.HttpCompliance.VIOLATIONS_ATTR

use ComplianceViolation.CapturingListener#VIOLATIONS_ATTR_KEY instead.
(Note: new ATTR captures all Compliance violations, not just HTTP.
Make sure you have HttpConnectionFactory.setRecordHttpComplianceViolations(true).
Also make sure that a ComplianceViolation.CapturingListener has been added as a bean to either the Connector or Server for the Attribute to be created.)

12.0.6
org.eclipse.jetty.security.PropertyUserStore.getConfigResource()

Returns: the resource associated with the configured properties file, creating it if necessary

12.0.6
12.0.6
12.0.6
org.eclipse.jetty.server.internal.HttpConnection(HttpConfiguration configuration, Connector connector, EndPoint endPoint, boolean recordComplianceViolations)

use HttpConnection(HttpConfiguration, Connector, EndPoint) instead. Will be removed in Jetty 12.1.0

12.0.6
org.eclipse.jetty.server.internal.HttpConnection.isRecordHttpComplianceViolations()

No replacement, no longer used within HttpConnection, will be removed in Jetty 12.1.0

12.0.1
12.0.1
org.eclipse.jetty.session.AbstractSessionManager.setUsingURLs(boolean usingURLs)

use setUsingUriParameters(boolean) instead, will be removed in Jetty 12.1.0

10
10
org.eclipse.jetty.util.UrlEncoded.decodeTo(String
the string containing the encoded parameters
content
,
MultiMap<String>
the MultiMap to put parsed query parameters into
map
,
String
the charset to use for decoding
charset
)

use decodeTo(String, MultiMap, Charset) instead

12.0.4
org.eclipse.jetty.util.resource.PathResource.SUPPORTED_SCHEMES

Using ResourceFactoryInternals.isSupported() instead.

12.0.2

Returns:

Resource, or null if string points to a location that does not exist
org.eclipse.jetty.util.resource.ResourceFactory.newClassPathResource
(String
the relative name of the resource
resource
)

use newClassLoaderResource(String, boolean) instead, will be removed in Jetty 12.1.0

12.0.2

Returns:

The new Resource, or null if string points to a location that does not exist
org.eclipse.jetty.util.resource.ResourceFactory.newSystemResource
(String
Resource as string representation
resource
)

use newClassLoaderResource(String) or newClassLoaderResource(String, boolean) instead, will be removed in Jetty 12.1.0

Deprecated Item Summary

SinceDeprecated Item and Description
org.eclipse.jetty.client.HttpClientTransport.connect(InetSocketAddress
the address to connect to
address
,
Map<String, Object>
the context information to establish the connection
context
)

use connect(SocketAddress, Map) instead.

org.eclipse.jetty.ee10.runner.Runner

No replacement provided or available. Migrate to jetty-home (and use ${jetty.base} directory).

org.eclipse.jetty.ee10.servlet.ErrorHandler.getAcceptableWriter(Request
The base request
baseRequest
,
HttpServletRequest
The servlet request (may be wrapped)
request
,
HttpServletResponse
The response (may be wrapped)
response
)

Returns: A Writer if there is a known acceptable charset or null

org.eclipse.jetty.http.CookieCompliance.Violation.RESERVED_NAMES_NOT_DOLLAR_PREFIXED

no replacement because was mistakenly considered a violation

Returns:

the path info portion of the string
org.eclipse.jetty.http.pathmap.PathSpec.getPathInfo
(String
the path to match against
path
)

use matched(String) instead

Returns:

the match, or null if no match at all
org.eclipse.jetty.http.pathmap.PathSpec.getPathMatch
(String
the path to match against
path
)

use matched(String) instead

Returns:

the local network address this session is bound to, or null if this session is not bound to a network address
org.eclipse.jetty.http2.api.Session.getLocalAddress
()

use getLocalSocketAddress() instead

Returns:

the remote network address this session is connected to, or null if this session is not connected to a network address
org.eclipse.jetty.http2.api.Session.getRemoteAddress
()

use getRemoteSocketAddress() instead

Returns:

The local InetSocketAddress to which this EndPoint is bound, or null if this EndPoint is not bound to a Socket address.
org.eclipse.jetty.io.EndPoint.getLocalAddress
()

use getLocalSocketAddress() instead

Returns:

The remote InetSocketAddress to which this EndPoint is connected, or null if this EndPoint is not connected to a Socket address.
org.eclipse.jetty.io.EndPoint.getRemoteAddress
()

use getRemoteSocketAddress() instead.

org.eclipse.jetty.io.ssl.SslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine sslEngine)

org.eclipse.jetty.io.ssl.SslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine sslEngine, boolean useDirectBuffersForEncryption, boolean useDirectBuffersForDecryption)

Returns:

true if hot reload was enabled before startup
org.eclipse.jetty.security.HashLoginService.isHotReload
()

use getReloadInterval()

org.eclipse.jetty.security.HashLoginService.setHotReload(boolean
true to enable 1s refresh interval, false to disable
enable
)

use setReloadInterval(int)

Returns:

true if hot reload was enabled before startup
org.eclipse.jetty.security.PropertyUserStore.isHotReload
()

use getReloadInterval()

org.eclipse.jetty.security.PropertyUserStore.setHotReload(boolean
true to enable to a 1 second scan, false to disable
enable
)

use setReloadInterval(int)

org.eclipse.jetty.server.OptionalSslConnectionFactory.otherProtocol(ByteBuffer
The buffer with the first bytes of the connection
buffer
,
EndPoint
The connection EndPoint object
endPoint
)

Override nextProtocol(Connector, EndPoint, ByteBuffer) instead.

Returns:

the full redirect "Location" URL (including scheme, host, port, path, etc...)
org.eclipse.jetty.server.Request.toRedirectURI
(Request
the request the redirect should be based on (needed when relative locations are provided, so that server name, scheme, port can be built out properly)
request
,
String
the location URL to redirect to (can be a relative path)
location
)

use Response#toRedirectURI(Request, String)

org.eclipse.jetty.server.Response.replaceCookie(Response
the HTTP response
response
,
HttpCookie
the HTTP cookie to add
cookie
)

use putCookie(Response, HttpCookie)

org.eclipse.jetty.util.ConcurrentPool(ConcurrentPool.StrategyType
the strategy to used to lookup entries
strategyType
,
int
the maximum number of pooled entries
maxSize
,
boolean
whether a ThreadLocal cache should be used for the most recently released entry
cache
)

cache is no longer supported. Use StrategyType#THREAD_ID

org.eclipse.jetty.util.ConcurrentPool(ConcurrentPool.StrategyType
the strategy to used to lookup entries
strategyType
,
int
the maximum number of pooled entries
maxSize
,
boolean
whether a ThreadLocal cache should be used for the most recently released entry
cache
,
ToIntFunction<P>
a function that given the pooled object returns the max multiplex count
maxMultiplex
)

cache is no longer supported. Use StrategyType#THREAD_ID

Returns:

true if the string ends with the substring, ignoring StandardCharsets#US_ASCII case differences.
org.eclipse.jetty.util.StringUtil.endsWithIgnoreCase
(String
The string to check
string
,
String
The sub string to look for as a suffix
suffix
)

Use asciiEndsWithIgnoreCase(String, String)

Returns:

true if the string ends with the substring, ignoring StandardCharsets#US_ASCII case differences.
org.eclipse.jetty.util.StringUtil.startsWithIgnoreCase
(String
The string to check
string
,
String
The sub string to look for as a prefix
prefix
)

Use asciiEndsWithIgnoreCase(String, String)

org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(String
the URI query string.
query
,
MultiMap<String>
the MultiMap to store the fields.
map
)

use decodeUtf8To(String, Fields) instead.

org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(String
the string containing the encoded parameters
query
,
int
the offset within raw to decode from
offset
,
int
the length of the section to decode
length
,
MultiMap<String>
the MultiMap to populate
map
)

use decodeUtf8To(String, int, int, Fields) instead.

Returns:

a new array representing the JSON array
org.eclipse.jetty.util.ajax.JSON.newArray
(int
the size of the array
size
)

use setArrayConverter(Function) instead.

org.eclipse.jetty.util.component.FileNoticeLifeCycleListener

use org.eclipse.jetty.server.StateLifeCycleListener instead

org.eclipse.jetty.util.ssl.SslContextFactory.processIncludeCipherSuites(String[] supportedCipherSuites, List<String> selectedCiphers)

no replacement

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
org.eclipse.jetty.util.ArrayTernaryTrie.Growing._trie

ArrayTernaryTrie is deprecated or references (maybe indirectly) at least one deprecated element.

org.eclipse.jetty.util.AttributesMap(AttributesMap attributes)

AttributesMap is deprecated or references (maybe indirectly) at least one deprecated element.