Package org.kiwiproject.jaxrs.client
Class WebTargetClientHelper
- java.lang.Object
-
- org.kiwiproject.jaxrs.client.WebTargetClientHelper
-
@Beta public class WebTargetClientHelper extends Object
Use with JAX-RSClientinstances to provide additional functionality viaWebTargetHelper. Each of thetargetmethods returns aWebTargetHelperto allow method chaining. Please see the documentation inWebTargetHelperfor more explanation.- See Also:
WebTargetHelper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WebTargetHelpertarget(String uri)Build a new web resource target.WebTargetHelpertarget(URI uri)Build a new web resource target.WebTargetHelpertarget(javax.ws.rs.core.Link link)Build a new web resource target.WebTargetHelpertarget(javax.ws.rs.core.UriBuilder uriBuilder)Build a new web resource target.static WebTargetClientHelperwithClient(javax.ws.rs.client.Client client)Create a new instance with the givenClient.
-
-
-
Method Detail
-
withClient
public static WebTargetClientHelper withClient(javax.ws.rs.client.Client client)
Create a new instance with the givenClient.- Parameters:
client- the Client to use when building requests- Returns:
- a new instance
-
target
public WebTargetHelper target(String uri)
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
public WebTargetHelper target(URI uri)
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
public WebTargetHelper target(javax.ws.rs.core.UriBuilder uriBuilder)
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
public WebTargetHelper target(javax.ws.rs.core.Link link)
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
-
-