public abstract class AbstractGenericRESTClient extends Object implements org.gcube.spatial.data.clients.GenericLoginClient
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGenericRESTClient(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate() |
void |
authenticate(org.gcube.spatial.data.sdi.model.credentials.AccessType type) |
protected static <T> T |
check(org.gcube.common.gxrest.response.inbound.GXInboundResponse resp,
Class<T> clazz) |
protected void |
delete(String path) |
boolean |
exist() |
protected String |
get(String path) |
protected <T> T |
get(String path,
Class<T> clazz) |
protected <T> T |
get(String path,
Class<T> clazz,
javax.ws.rs.core.MediaType type) |
protected <T> T |
get(String path,
Class<T> clazz,
String mediaType) |
protected String |
getExistsPath() |
org.gcube.spatial.data.clients.model.ConnectionDescriptor |
getInstance() |
protected <T> T |
makeCall(org.gcube.common.clients.Call<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest,T> call) |
protected void |
post(String path,
javax.ws.rs.client.Entity<?> entity) |
protected <T> T |
post(String path,
javax.ws.rs.client.Entity<?> entity,
Class<T> returnClazz) |
protected <T> T |
post(String path,
javax.ws.rs.client.Entity<?> entity,
Class<T> returnClazz,
Map<String,?> queryParams) |
protected void |
post(String path,
Object obj) |
protected <T> T |
put(String path,
javax.ws.rs.client.Entity<?> entity,
Class<T> returnClazz) |
protected void |
put(String path,
Object obj) |
protected void |
register(Class<?> providerClass) |
protected void |
register(Object provider) |
protected org.gcube.common.gxrest.request.GXWebTargetAdapterRequest |
resolve() |
void |
setHTTPBasicAuth(String user,
String pwd) |
protected AbstractGenericRESTClient(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn)
protected String getExistsPath()
public boolean exist()
exist in interface org.gcube.spatial.data.clients.SDIRESTClientpublic org.gcube.spatial.data.clients.model.ConnectionDescriptor getInstance()
getInstance in interface org.gcube.spatial.data.clients.SDIRESTClientpublic void authenticate(org.gcube.spatial.data.sdi.model.credentials.AccessType type)
authenticate in interface org.gcube.spatial.data.clients.GenericLoginClientpublic void authenticate()
authenticate in interface org.gcube.spatial.data.clients.GenericLoginClientprotected void register(Class<?> providerClass)
protected void register(Object provider)
protected org.gcube.common.gxrest.request.GXWebTargetAdapterRequest resolve()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected <T> T makeCall(org.gcube.common.clients.Call<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest,T> call)
throws org.gcube.spatial.data.sdi.model.faults.RemoteException,
Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected void delete(String path) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected void post(String path, Object obj) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected <T> T post(String path, javax.ws.rs.client.Entity<?> entity, Class<T> returnClazz, Map<String,?> queryParams) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected void post(String path, javax.ws.rs.client.Entity<?> entity) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected <T> T post(String path, javax.ws.rs.client.Entity<?> entity, Class<T> returnClazz) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionprotected <T> T put(String path, javax.ws.rs.client.Entity<?> entity, Class<T> returnClazz) throws Exception
Exceptionprotected <T> T get(String path, Class<T> clazz, String mediaType) throws Exception
Exceptionprotected <T> T get(String path, Class<T> clazz, javax.ws.rs.core.MediaType type) throws Exception
Exceptionprotected static <T> T check(org.gcube.common.gxrest.response.inbound.GXInboundResponse resp,
Class<T> clazz)
throws org.gcube.spatial.data.sdi.model.faults.RemoteException
org.gcube.spatial.data.sdi.model.faults.RemoteExceptionCopyright © 2021. All Rights Reserved.