diff --git a/api/src/main/java/org/eclipse/microprofile/rest/client/RestClientBuilder.java b/api/src/main/java/org/eclipse/microprofile/rest/client/RestClientBuilder.java index a28590f..1cd6066 100644 --- a/api/src/main/java/org/eclipse/microprofile/rest/client/RestClientBuilder.java +++ b/api/src/main/java/org/eclipse/microprofile/rest/client/RestClientBuilder.java @@ -40,8 +40,8 @@ * Invoking {@link #newBuilder()} is intended to always create a new instance, not use a cached version. *
*
- * The RestClientBuilder
is a {@link Configurable} class as defined by JAX-RS. This allows a user to
- * register providers, implementation specific configuration.
+ * The RestClientBuilder
is a {@link Configurable} class as defined by Jakarta RESTful Web Services. This
+ * allows a user to register providers, implementation specific configuration.
*
* Implementations are expected to implement this class and provide the instance via the mechanism in @@ -123,8 +123,8 @@ default RestClientBuilder baseUri(String uri) { /** * Set the connect timeout. *
- * Like JAX-RS's jakarta.ws.rs.client.ClientBuilder
's connectTimeout
method, specifying a
- * timeout of 0 represents infinity, and negative values are not allowed.
+ * Like Jakarta RESTful Web Services's jakarta.ws.rs.client.ClientBuilder
's connectTimeout
+ * method, specifying a timeout of 0 represents infinity, and negative values are not allowed.
*
* If the client instance is injected via CDI and the @@ -146,12 +146,12 @@ default RestClientBuilder baseUri(String uri) { /** * Set the read timeout. *
- * Like JAX-RS's jakarta.ws.rs.client.ClientBuilder
's readTimeout
method, specifying a
- * timeout of 0 represents infinity, and negative values are not allowed.
+ * Like Jakarta RESTful Web Services's jakarta.ws.rs.client.ClientBuilder
's readTimeout
+ * method, specifying a timeout of 0 represents infinity, and negative values are not allowed.
*
- * Also like the JAX-RS Client API, if the read timeout is reached, the client interface method will throw a
- * jakarta.ws.rs.ProcessingException
.
+ * Also like the Jakarta RESTful Web Services Client API, if the read timeout is reached, the client interface
+ * method will throw a jakarta.ws.rs.ProcessingException
.
*
* If the client instance is injected via CDI and the diff --git a/api/src/main/java/org/eclipse/microprofile/rest/client/annotation/RegisterClientHeaders.java b/api/src/main/java/org/eclipse/microprofile/rest/client/annotation/RegisterClientHeaders.java index 3761afd..ec932d5 100644 --- a/api/src/main/java/org/eclipse/microprofile/rest/client/annotation/RegisterClientHeaders.java +++ b/api/src/main/java/org/eclipse/microprofile/rest/client/annotation/RegisterClientHeaders.java @@ -32,7 +32,7 @@ *
* If no implementation class of the ClientHeadersFactory interface is specified in the annotation, then the * {@link DefaultClientHeadersFactoryImpl} will be used. This implementation will simply propagate headers (specified - * via MP Config property) from an inbound JAX-RS request (if applicable) to the outbound request. + * via MP Config property) from an inbound Jakarta RESTful Web Services request (if applicable) to the outbound request. *
* If a ClientHeadersFactory class specified is not found on the classpath, this should be considered a deployment
* exception.
diff --git a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ClientHeadersFactory.java b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ClientHeadersFactory.java
index 5b2bcdd..dc409dc 100644
--- a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ClientHeadersFactory.java
+++ b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ClientHeadersFactory.java
@@ -21,9 +21,9 @@
/**
* This interface is intended for generating or propagating HTTP headers. It is invoked by the MP Rest Client
* implementation before invoking any entity providers on the outbound processing chain. It contains a single method,
- * update
which takes parameters of headers passed in from the incoming JAX-RS request (if applicable, if
- * not, this will be an empty map) and a read-only map of headers specified by ClientHeaderParam
or
- * HeaderParam
annotations on the client interface.
+ * update
which takes parameters of headers passed in from the incoming Jakarta RESTful Web Services
+ * request (if applicable, if not, this will be an empty map) and a read-only map of headers specified by
+ * ClientHeaderParam
or HeaderParam
annotations on the client interface.
*
* This method should return a MultivaluedMap of headers to be merged with the outgoing headers. If it's desired for * {@code clientOutgoingHeaders} to be present in addition to any propagated headers, @@ -31,8 +31,9 @@ * the final set of HTTP headers that will be sent to the outbound entity provider processing chain - thus any filters, * MessageBodyWriters, interceptors, etc. could further refine the set of headers actually sent on the client request. *
- * If the ClientHeadersFactory instance is invoked while in the context of a JAX-RS request, the implementation may
- * optionally support injection of fields and methods annotated with {@literal @}Context
.
+ * If the ClientHeadersFactory instance is invoked while in the context of a Jakarta RESTful Web Services request, the
+ * implementation may optionally support injection of fields and methods annotated with
+ * {@literal @}Context
.
*
* If the ClientHeadersFactory instance is managed by CDI (i.e. it is annotated with
* {@literal @}ApplicationScoped
, etc.), the implementation must use the appropriate CDI-managed instance,
@@ -47,8 +48,8 @@ public interface ClientHeadersFactory {
* could further update the headers.
*
* @param incomingHeaders
- * - the map of headers from the inbound JAX-RS request. This will be an empty map if the associated
- * client interface is not part of a JAX-RS request.
+ * - the map of headers from the inbound Jakarta RESTful Web Services request. This will be an empty map
+ * if the associated client interface is not part of a Jakarta RESTful Web Services request.
* @param clientOutgoingHeaders
* - the read-only map of header parameters specified on the client interface.
* @return a map of HTTP headers to merge with the clientOutgoingHeaders to be sent to the remote service.
diff --git a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/DefaultClientHeadersFactoryImpl.java b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/DefaultClientHeadersFactoryImpl.java
index f1018e7..58f4c03 100644
--- a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/DefaultClientHeadersFactoryImpl.java
+++ b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/DefaultClientHeadersFactoryImpl.java
@@ -28,13 +28,13 @@
import jakarta.ws.rs.core.MultivaluedMap;
/**
- * This class propagates JAX-RS headers whose names are specified using the MicroProfile Config property,
- * org.eclipse.microprofile.rest.client.propagateHeaders
.
+ * This class propagates Jakarta RESTful Web Services headers whose names are specified using the MicroProfile Config
+ * property, org.eclipse.microprofile.rest.client.propagateHeaders
.
*
*
* The value of this property should be a comma-separated list of HTTP header names. If the headers specified in the - * property exist in the inbound JAX-RS request, this class will propagate those headers to the outbound Rest Client - * request. + * property exist in the inbound Jakarta RESTful Web Services request, this class will propagate those headers to the + * outbound Rest Client request. * *
* Any headers present on {@code clientOutgoingHeaders} will not be returned when calling the
diff --git a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ResponseExceptionMapper.java b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ResponseExceptionMapper.java
index becc4f3..0f94562 100644
--- a/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ResponseExceptionMapper.java
+++ b/api/src/main/java/org/eclipse/microprofile/rest/client/ext/ResponseExceptionMapper.java
@@ -24,7 +24,7 @@
import jakarta.ws.rs.core.Response;
/**
- * Converts an JAX-RS Response object into an Exception.
+ * Converts an Jakarta RESTful Web Services Response object into an Exception.
*
*/
public interface ResponseExceptionMapper
* public interface MyClientService {
diff --git a/spec/src/main/asciidoc/clientexamples.asciidoc b/spec/src/main/asciidoc/clientexamples.asciidoc
index 2e100a1..235cebc 100644
--- a/spec/src/main/asciidoc/clientexamples.asciidoc
+++ b/spec/src/main/asciidoc/clientexamples.asciidoc
@@ -140,12 +140,12 @@ public interface MyInvalidClient {
}
----
-It is also possible to add or propagate headers en masse using a `ClientHeadersFactory`. This interface has a single method and takes two read-only `MultivaluedMap` parameters: The first map represents headers for the incoming request - if the client is executing in a JAX-RS environment then this map will contain headers from the inbound JAX-RS request. The second map represents the headers to be sent,
+It is also possible to add or propagate headers en masse using a `ClientHeadersFactory`. This interface has a single method and takes two read-only `MultivaluedMap` parameters: The first map represents headers for the incoming request - if the client is executing in a Jakarta RESTful Web Services environment then this map will contain headers from the inbound Jakarta RESTful Web Services request. The second map represents the headers to be sent,
and it contains headers that have been specified via `@ClientHeaderParam`, `@HeaderParam`, `@BeanParam`, etc. The method should return a `MultivaluedMap` containing the "final" map of headers to be sent to the outbound processing flow. Providers such as filters, interceptors, message body writers, etc. could still modify the final map of headers prior to
sending the HTTP request.
By default, no `ClientHeadersFactory` implementation is used. To enable a `ClientHeadersFactory`, the client interface must be annotated with the `@RegisterClientHeaders` annotation. If this annotation specifies a value, the client implementation must invoke an instance of the specified `ClientHeadersFactory` implementation class. If no value is specified, then the client
-implementation must invoke the `DefaultClientHeadersFactoryImpl`. This default factory will propagate specified headers from the inbound JAX-RS request to the outbound request - these headers are specified with a comma-separated list using the following MicroProfile Config property:
+implementation must invoke the `DefaultClientHeadersFactoryImpl`. This default factory will propagate specified headers from the inbound Jakarta RESTful Web Services request to the outbound request - these headers are specified with a comma-separated list using the following MicroProfile Config property:
`org.eclipse.microprofile.rest.client.propagateHeaders`
diff --git a/spec/src/main/asciidoc/integration.asciidoc b/spec/src/main/asciidoc/integration.asciidoc
index a476ac4..63dcedf 100644
--- a/spec/src/main/asciidoc/integration.asciidoc
+++ b/spec/src/main/asciidoc/integration.asciidoc
@@ -48,17 +48,17 @@ the default connect and read timeouts and use the timeout value specified in the
blocking/non-interruptible operations should be less than or equal to the time specified in the annotation, allowing the MP Fault Tolerance implementation to
interrupt the request and the throw the appropriate `TimeoutException`.
-=== JAX-RS
+=== Jakarta RESTful Web Services
-When a client interface is executed from within a JAX-RS context (resource or provider class), it is possible to propagate HTTP headers using the `DefaultClientHeadersFactoryImpl` by adding the
-`@RegisterClientHeaders` annotation to the interface with no value. To specify which headers to propagate from the inbound JAX-RS request to the outbound MP Rest Client request, users must use a
+When a client interface is executed from within a Jakarta RESTful Web Services context (resource or provider class), it is possible to propagate HTTP headers using the `DefaultClientHeadersFactoryImpl` by adding the
+`@RegisterClientHeaders` annotation to the interface with no value. To specify which headers to propagate from the inbound Jakarta RESTful Web Services request to the outbound MP Rest Client request, users must use a
comma-separated list of headers in the following MicroProfile Config property:
`org.eclipse.microprofile.rest.client.propagateHeaders`.
-If the client interface is used within a JAX-RS context, then the implementation may support injection of `@Context`
-fields and methods into custom `ClientHeadersFactory` instances. The injected objects are related to the JAX-RS context
-(i.e. an injected `UriInfo` will be specific to the JAX-RS resource's URI, not the URI of the MP Rest Client interface).
+If the client interface is used within a Jakarta RESTful Web Services context, then the implementation may support injection of `@Context`
+fields and methods into custom `ClientHeadersFactory` instances. The injected objects are related to the Jakarta RESTful Web Services context
+(i.e. an injected `UriInfo` will be specific to the Jakarta RESTful Web Services resource's URI, not the URI of the MP Rest Client interface).
This injection is optional for the implementation, so the only portable injection mechanism of `ClientHeadersFactory`
instances is `@Inject` when the client is managed by CDI.
diff --git a/spec/src/main/asciidoc/providers.asciidoc b/spec/src/main/asciidoc/providers.asciidoc
index 9c89168..1ef07eb 100644
--- a/spec/src/main/asciidoc/providers.asciidoc
+++ b/spec/src/main/asciidoc/providers.asciidoc
@@ -17,7 +17,7 @@
[[providers]]
== MicroProfile Rest Client Provider Registration
-The RestClientBuilder interface extends the `Configurable` interface from JAX-RS, allowing a user to register custom providers while its being built. The behavior of the providers supported is defined by the JAX-RS Client API specification. Below is a list of provider types expected to be supported by an implementation:
+The RestClientBuilder interface extends the `Configurable` interface from Jakarta RESTful Web Services, allowing a user to register custom providers while its being built. The behavior of the providers supported is defined by the Jakarta RESTful Web Services Client API specification. Below is a list of provider types expected to be supported by an implementation:
=== ClientResponseFilter
@@ -31,15 +31,15 @@ Both the `ClientRequestFilter` and `ClientResponseFilter` interfaces contains me
=== MessageBodyReader
-The `MessageBodyReader` interface defined by JAX-RS allows the entity to be read from the API response after invocation.
+The `MessageBodyReader` interface defined by Jakarta RESTful Web Services allows the entity to be read from the API response after invocation.
=== MessageBodyWriter
-The `MessageBodyWriter` interface defined by JAX-RS allows a request body to be written in the request for `@POST`, `@PUT` operations, as well as other HTTP methods that support bodies.
+The `MessageBodyWriter` interface defined by Jakarta RESTful Web Services allows a request body to be written in the request for `@POST`, `@PUT` operations, as well as other HTTP methods that support bodies.
=== ParamConverter
-The `ParamConverter` interface defined by JAX-RS allows a parameter in a resource method to be converted to a format to be used in a request or a response.
+The `ParamConverter` interface defined by Jakarta RESTful Web Services allows a parameter in a resource method to be converted to a format to be used in a request or a response.
=== ReaderInterceptor
@@ -55,7 +55,7 @@ The `ResponseExceptionMapper` is specific to MicroProfile Rest Client. This map
==== How to Implement ResponseExceptionMapper
-The specification provides default methods for `getPriority()` and `handles(int status, MultivaluedMap
@Produces
annotation affects the value transmitted in the
* Accept
header, and that it's @Consumes
annotation affects the value transmitted in the
- * Content-Type
header. Note that this is opposite of what you would expect for JAX-RS resources.
+ * Content-Type
header. Note that this is opposite of what you would expect for Jakarta RESTful Web
+ * Services resources.
*/
public class ProducesConsumesTest extends Arquillian {
private final static Logger LOG = Logger.getLogger(ProducesConsumesTest.class.getName());