Class JerseyClientFactory.CloseableClient

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing interface:
    JerseyClientFactory

    public static class JerseyClientFactory.CloseableClient
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Wrapper for clients that makes them easy to use with try-with-resources.
    • Constructor Summary

      Constructors 
      Constructor Description
      CloseableClient​(javax.ws.rs.client.Client client)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.client.Client client()  
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CloseableClient

        public CloseableClient​(javax.ws.rs.client.Client client)
    • Method Detail

      • client

        public javax.ws.rs.client.Client client()
        Returns:
        the actual client.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable