Class AbstractRestClient
- java.lang.Object
-
- step.repositories.azure.devops.rest.AbstractRestClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
AzureDevopsRestClient
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, Class<T> responseType)
-
-
-
Method Detail
-
performCall
protected <T> T performCall(jakarta.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, Class<T> responseType) throws ApiInvocationException, ContinuationException, UnauthorizedException
-
invoke
protected <R> R invoke(Callable<R> callable) throws ApiInvocationException
- Throws:
ApiInvocationException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-