Package step.repositories.jira.zephyr
Class AbstractRestClient
- java.lang.Object
-
- step.repositories.jira.zephyr.AbstractRestClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
JiraRestClientImpl
,ZephyrRestClientImpl
public class AbstractRestClient extends Object implements Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.ws.rs.client.Client
client
-
Constructor Summary
Constructors Constructor Description AbstractRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected <R> R
invoke(Callable<R> callable)
protected <T> T
performCall(jakarta.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, jakarta.ws.rs.core.GenericType<T> responseType)
protected <T> T
performCall(jakarta.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, Class<T> responseType)
-
-
-
Method Detail
-
performCall
protected <T> T performCall(jakarta.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, Class<T> responseType)
-
performCall
protected <T> T performCall(jakarta.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, jakarta.ws.rs.core.GenericType<T> responseType)
-
invoke
protected <R> R invoke(Callable<R> callable)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-