MicroProfile® Rest Client 4.0

Rest Client 4.0

Description

The MicroProfile Rest Client provides a type-safe approach to invoke RESTful services over HTTP.

 

This is a major release of this specification. This release will align with Jakarta EE 10 Core Profile and integrate with Jakarta Restful Web Services 4.0.

Incompatible Changes

This release aligns with Jakarta EE 10, so it won’t work with earlier versions of Jakarta or Java EE.

API/SPI Changes

  • New overloaded baseUri(String uri) method so users don’t have to call URI.create()
  • New header(String name, Object value) method for adding headers to Client instances

Functional/Specification Changes

  • Clarify specification CDI support (@RestClient qualifier is not optional)
  • Add multi-part processing example to specification.
  • Clarify specification that when a client injected as a CDI bean falls out of scope, the client is closed

Other Changes

  • TCK tests added to ensure that priorities specified for client request and response filters are honored by implementations.
  • TCK test added for proper handling of ResponseExceptionMapper providers on subresource interface method invocations

 

The proposed issues to be addressed in this release can be found here.

Conforms To UI/UX Guidelines
Not verified