Class AbstractRestClient
- java.lang.Object
-
- step.repositories.azure.devops.rest.AbstractRestClient
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Direct Known Subclasses:
AzureDevopsRestClient
public class AbstractRestClient extends java.lang.Object implements java.io.Closeable
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.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(java.util.concurrent.Callable<R> callable)
protected <T> T
performCall(javax.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(javax.ws.rs.client.Invocation.Builder builder, java.lang.String method, java.lang.Object requestEntity, java.lang.Class<T> responseType) throws ApiInvocationException, ContinuationException
-
invoke
protected <R> R invoke(java.util.concurrent.Callable<R> callable) throws ApiInvocationException
- Throws:
ApiInvocationException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-