JBoss.orgCommunity Documentation
Many facilities from Resteasy 2 appear in a different form in Resteasy 3. For example, much of the client framework in Resteasy 2 is formalized, in modified form, in JAX-RS 2.0. Resteasy versions 3.0.x implement both the older deprecated form and the newer conformant form. The deprecated form is finally removed in Resteasy 3.1.0.Final. For more information on upgrading from various deprecated facilities in Resteasy 2, see http://docs.jboss.org/resteasy/docs/resteasy-upgrade-guide-en-US.pdf
as()
method for casting to subinterfaces.
For more information see
https://issues.jboss.org/browse/RESTEASY-1332.
org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer
in module resteasy-netty4
can now be configured to close idle connections. For more information see
https://issues.jboss.org/browse/RESTEASY-1325.
MessageBodyWriter<Number>
. For more information see
https://issues.jboss.org/browse/RESTEASY-1282.
org.jboss.resteasy.Links.RESTServiceDiscovery
in resteasy-links module.
See https://issues.jboss.org/browse/RESTEASY-833 for more information.
@QueryParam
annotation which allows capturing the name of
a query parameter. See https://issues.jboss.org/browse/RESTEASY-715
for more information.
org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder
has a new method,
asyncExecutor(ExecutorService asyncExecutor, boolean cleanupExecutor)
, with a new
second parameter which tells the Client
to shut down the Executor upon closing. See
https://issues.jboss.org/browse/RESTEASY-1181 for more information.
org.jboss.resteasy.client.jaxrs.ResteasyClient.property()
will now
remove a property when the value is set to null. See
https://issues.jboss.org/browse/RESTEASY-1184 for more information.
org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer
in module resteasy-netty4
has a new method, setHttpChannelHandlers()
, that allows adding channel handlers that are
processed after the HTTP handlers. See
https://issues.jboss.org/browse/RESTEASY-1171 for more information.
org.jboss.resteasy.api.validation.ResteasyViolationException
is now a subclass of
javax.validation.ConstraintViolationException
instead of
javax.validation.ValidationException
. Now, an ExceptionMapper
for
ConstraintViolationException
will catch ResteasyViolationException
s.
See https://issues.jboss.org/browse/RESTEASY-1137 for more information.
There is a new context parameter, "resteasy.buffer.exception.entity". See
Section 3.4, “Configuration switches” for more information. Also, see
https://issues.jboss.org/browse/RESTEASY-981.
context.setRequestUri(URI.create("https://foo.com/base"), URI.create("https://foo.com/base/path")); // legal context.setRequestUri(URI.create("https://foo.com/base"), URI.create("/path")); // "path" is ignored // if base uri is "http://foo.com/base" context.setRequestUri(URI.create("http://foo.com/base/path")); // legal context.setRequestUri(URI.create("/path")); // ignored
ServletContainerInitializer
.
This allows tighter integration with Resteasy much like you have within JBoss/WildFly. Check out
Chapter 3, Installation/Configuration for more information.
createPerRequestInstance
parameter has been removed from
ClientRequest.setDefaultExecutorClass()
.
Methods @Deprecated within 1.2.GA have been removed. This is in the Client Framework and has to do with all references to Apache HTTP Client. You must now create an ClientExecutor if you want to manage your Apache HTTP Client sessions.