Class JerseyClientFactory.CloseableClient
java.lang.Object
au.net.causal.shoelaces.jerseyclient.JerseyClientFactory.CloseableClient
- All Implemented Interfaces:
AutoCloseable
- Enclosing interface:
- JerseyClientFactory
Wrapper for clients that makes them easy to use with try-with-resources.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CloseableClient
public CloseableClient(jakarta.ws.rs.client.Client client)
-
-
Method Details
-
client
public jakarta.ws.rs.client.Client client()- Returns:
- the actual client.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-