RESTEasy 6.1.0.Final Release
By James R. Perkins | August 2, 2022
What has changed in Jakarta RESTful Web Services 3.1
There have not been a lot of major changes in Jakarta REST 3.1. However, below are a some highlights.
This introduces a way to bootstrap a REST server. This can be very helpful for unit tests or just running in Java SE.
With RESTEasy you need to add one of the following dependencies to get the
SeBootstrap to work.
org.jboss.resteasy:resteasy-vertx(SSL not implemented)
Note that a custom implementation of the
org.jboss.resteasy.plugins.server.embedded.EmbeddedServer can also be used.
This is the replacement for the deprecated
if you already have a custom implementation of
EmbeddedJaxrsServer that can be used as well.
The Undertow implementations are the preferred implementations. This is what RESTEasy uses for the Jakarta REST 3.1 TCK.
In Jakarta REST 3.1 the
@Context is deprecated.
@Context is still currently supported, future versions may remove support.
With this, RESTEasy has added some support for injecting the known types which
@Context also injects. One note is this
currently does not work with method parameter injection. The following types can be injected as global fields in CDI
Section 4.1.2 of the spec
ServiceLoader must be used to locate
This can be enabled if your
Application.getProperties() contains a key of
jakarta.ws.rs.loadServices with a value
jakarta.ws.rs.ext.ExceptionMapper<Throwable> is now required for an implementation. This can easily be
overridden by defining your own
ExceptionMapper<Throwable> as a
Link.JaxbAdapter inner classes have been deprecated. The
Cookie constructor as been
deprecated in favor of the
Cookie.Builder as has the
NewCookie in favor of
While there have not been many new features in RESTEasy itself, there has been one new client utility introduced. Currently, this contains some client authentication filters.
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor