Class JerseyClientFactory.CloseableClient

java.lang.Object
au.net.causal.shoelaces.jerseyclient.JerseyClientFactory.CloseableClient
All Implemented Interfaces:
AutoCloseable
Enclosing interface:
JerseyClientFactory

public static class JerseyClientFactory.CloseableClient extends Object implements AutoCloseable
Wrapper for clients that makes them easy to use with try-with-resources.
  • 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:
      close in interface AutoCloseable