public class AbstractRestClient extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected javax.ws.rs.client.Client |
client |
Constructor and Description |
---|
AbstractRestClient() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected <R> R |
invoke(Callable<R> callable) |
protected <T> T |
performCall(javax.ws.rs.client.Invocation.Builder builder,
String method,
Object requestEntity,
Class<T> responseType) |
protected <T> T |
performCall(javax.ws.rs.client.Invocation.Builder builder,
String method,
Object requestEntity,
javax.ws.rs.core.GenericType<T> responseType) |
protected <T> T performCall(javax.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, Class<T> responseType)
protected <T> T performCall(javax.ws.rs.client.Invocation.Builder builder, String method, Object requestEntity, javax.ws.rs.core.GenericType<T> responseType)
protected <R> R invoke(Callable<R> callable)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2020. All rights reserved.