Class AbstractRestClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    JiraRestClientImpl, ZephyrRestClientImpl

    public class AbstractRestClient
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jakarta.ws.rs.client.Client client  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected <R> R invoke​(java.util.concurrent.Callable<R> callable)  
      protected <T> T performCall​(jakarta.ws.rs.client.Invocation.Builder builder, java.lang.String method, java.lang.Object requestEntity, jakarta.ws.rs.core.GenericType<T> responseType)  
      protected <T> T performCall​(jakarta.ws.rs.client.Invocation.Builder builder, java.lang.String method, java.lang.Object requestEntity, java.lang.Class<T> responseType)  
      • Methods inherited from class java.lang.Object

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

      • client

        protected final jakarta.ws.rs.client.Client client
    • Constructor Detail

      • AbstractRestClient

        public AbstractRestClient()
    • Method Detail

      • performCall

        protected <T> T performCall​(jakarta.ws.rs.client.Invocation.Builder builder,
                                    java.lang.String method,
                                    java.lang.Object requestEntity,
                                    java.lang.Class<T> responseType)
      • performCall

        protected <T> T performCall​(jakarta.ws.rs.client.Invocation.Builder builder,
                                    java.lang.String method,
                                    java.lang.Object requestEntity,
                                    jakarta.ws.rs.core.GenericType<T> responseType)
      • invoke

        protected <R> R invoke​(java.util.concurrent.Callable<R> callable)
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException