protected <T> T callAPIWithResource(APIInfo api, WebResource resource, Object requestObject, Class<T> responseType) throws AtlasServiceException { GenericType<T> genericType = null; if (responseType != null) { genericType = new GenericType<>(responseType); } return callAPIWithResource(api, resource, requestObject, genericType); }
@Override public <T> T getEntity(Type type) throws Exception { return bcr.getEntity(new GenericType<T>(type)); } }
protected <T> T callAPIWithResource(API api, WebResource resource, Object requestObject, Class<T> responseType) throws AtlasServiceException { GenericType<T> genericType = null; if (responseType != null) { genericType = new GenericType<>(responseType); } return callAPIWithResource(api, resource, requestObject, genericType); }
protected <T> T callAPIWithResource(API api, WebResource resource, Object requestObject, Class<T> responseType) throws AtlasServiceException { GenericType<T> genericType = null; if (responseType != null) { genericType = new GenericType<>(responseType); } return callAPIWithResource(api, resource, requestObject, genericType); }
@Override public <T> T getEntity(TypeToken<T> type) throws Exception { return bcr.getEntity(new GenericType<T>(type.getType())); }