August 2019
Intermediate to advanced
256 pages
6h 43m
English
Each implementation provides a default ResponseExceptionMapper implementation that will map and invoke a response to javax.ws.rs.WebApplicationException when the response status code is >= 400. It has a priority of Integer.MAX_VALUE, and is meant to be used as a fallback whenever an error is encountered. This mapper will be registered by default to all client interfaces, but this can be disabled by setting an MP Config property, microprofile.rest.client.disable.default.mapper, to true. It can also be disabled on a per-client basis by using the same property when building the client:
RestClientBuilder.newBuilder().property("microprofile.rest.client.disable.default.mapper",true)
Read now
Unlock full access