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.Clientclient
-
Constructor Summary
Constructors Constructor Description AbstractRestClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected <R> Rinvoke(Callable<R> callable)protected <T> TperformCall(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-