Package step.repositories.jira.zephyr
Class AbstractRestClient
- java.lang.Object
-
- step.repositories.jira.zephyr.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.Clientclient
-
Constructor Summary
Constructors Constructor Description AbstractRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected <R> Rinvoke(java.util.concurrent.Callable<R> callable)protected <T> TperformCall(jakarta.ws.rs.client.Invocation.Builder builder, java.lang.String method, java.lang.Object requestEntity, jakarta.ws.rs.core.GenericType<T> responseType)protected <T> TperformCall(jakarta.ws.rs.client.Invocation.Builder builder, java.lang.String method, java.lang.Object requestEntity, java.lang.Class<T> responseType)
-
-
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-