Package org.kiwiproject.jaxrs.client
Class WebTargetClientHelper
java.lang.Object
org.kiwiproject.jaxrs.client.WebTargetClientHelper
Use with Jakarta REST
Client instances to provide additional functionality via WebTargetHelper. Each
of the target methods returns a WebTargetHelper to allow method chaining. Please see the
documentation in WebTargetHelper for more explanation.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiontarget(jakarta.ws.rs.core.Link link) Build a new web resource target.target(jakarta.ws.rs.core.UriBuilder uriBuilder) Build a new web resource target.Build a new web resource target.Build a new web resource target.static WebTargetClientHelperwithClient(jakarta.ws.rs.client.Client client) Create a new instance with the givenClient.
-
Method Details
-
withClient
Create a new instance with the givenClient.- Parameters:
client- the Client to use when building requests- Returns:
- a new instance
-
target
Build a new web resource target.- Parameters:
uri- web resource URI. May contain template parameters. Must not be null- Returns:
- a
WebTargetHelperwith the target bound to the provided URI - See Also:
-
Client.target(String)
-
target
Build a new web resource target.- Parameters:
uri- web resource URI. Must not be null.- Returns:
- a
WebTargetHelperwith the target bound to the provided URI. - See Also:
-
Client.target(URI)
-
target
Build a new web resource target.- Parameters:
uriBuilder- web resource URI represented as URI builder. Must not be null.- Returns:
- a
WebTargetHelperwith the target bound to the provided URI.
-
target
Build a new web resource target.- Parameters:
link- link to a web resource. Must not be null.- Returns:
- a
WebTargetHelperwith the target bound to the linked web resource
-